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 is the relation of soap with xml?
What is Assync in XML api which version of XML parser u worked with ?
What are possible ways XML used in j2ee WebApplication.Like storing data in to database and for data transfer .Apart from this any uses.
What are xml naming rules?
How do I download a podcast from patreon?
What is xsd validation?
Why has xml been used for development?
Write a program to show literal result element as stylesheet?
How do I convert a pdf to a zip file?
Which is the best tool one should learn i.e the tool having demand in the market for XSL?
What is the function of xsl?
Do you know what are the roles of XSLT?