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
Is there any dtd file to validate atom feed files?
what is difference between mail sendig in .net 1.1 and .net 2.0
What does xml mean in texting?
Is xml a data structure?
What are the advantages of using xslt?
If an element or attribute is in the scope of an xml namespace declaration, is its name in that namespace?
What happens when an element is being processed in forwards-compatible mode?
What is xsd and wsdl?
How do you use tags in indesign?
Why do xml namespaces start with http?
Is xml schema required?
What are the advantages of xml over html?
What does xml stands for?
Does anyone still use rss?
What is xsl describe its two parts?