How do you load XML document and perform validation of the
document?
Answers were Sorted based on User's Feedback
Answer / bilal hanbali
1- XmlTextReader:We will use it just to load the XML
Document we want to Validate using Class Constructor which
take the file name as parameter
XmlTextReader xReader = new XmlTextReader(string
url_or_FilePath);
2- XmlSchema Class:Contains the definition of a schema
XmlSchema xmlSchema = XmlSchema.Read(xReader,
new ValidationEventHandler(SchemaReadError));
3-XmlSchemaCollection:From its name, it is a Colletion of
Schemas that will be used to validate the XML Documents
4-XmlValidatingReader:Represents a reader that provides
DTD, XML-Data Reduced (XDR) schema, and XML Schema
definition language (XSD) schema validation.
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / dor
Using DTD we can load XML document.
using Parser of XMLSpy to perform validation of the document
Is This Answer Correct ? | 4 Yes | 0 No |
What happens if there is no prefix on an element type name?
What happens if no xml namespace declaration is in scope?
Write a code for xml news?
What is dtd and its types?
What is meant by xsd?
How do I use the default xml namespace to refer to element type names in an xml namespace?
How you can enhance your XSL test?
What are the three components in soap?
What is the use of xslt <xsl: import> element?
What is the purpose of an xml file?
How to create an XSLT style sheet to format Data?
Explain about the dtd features?