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
What is the information contained inside the xml file?
Can we use xml for database purpose in html?
Are xml tags case sensitive?
What is the best rss feed reader?
Can excel read xml?
What are xml technologies?
How are comments used in xml?
What are the main features of xml?
What is use of rss feed in website?
What is excel xml format?
Does xml support user-defined tags?
Can we generate xsd from xml?
Can xml use non-latin characters?
What do you understand by svg and smil? Give examples
How do I create an xml file from excel?