How do you load XML document and perform validation of the
document?
Answer Posted / 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 |
Post New Answer View All Answers
Whether graphics can be used in XML? If so, How?
What is the use of xslt
What is atom 1.0 standard?
What is the use of namespace in xml?
How do I convert xml to text?
How use xml data in excel?
Which are the main features of xml?
How do I change a text file to xml?
Can a root element type be explicitly declared in the dtd?
Why is xml so popular?
What are the advantages of using xslt?
Can you use the XSLT to convert html into VXML?
How do I convert pdf to docx?
How do I add an rss feed to my website?
What does extensible markup language xml describe?