Tuesday 26 October 2010

Week 2 Exercise

 How to Check the Validity of  a XML Document


Valid XML Document

What is a Valid XML document to be exact, it is well informed and also matches criteria as laid out in DTD or Document Type Definition.Because it is typically specified in a DTD file which is reference at the top of the XML file. 

Furthermore if the XML does not contain Document Type Definition  information then there is no difference between a check for well-formed and a check for validity of a XML document.on my knowledgeable research that i have done It's important that XML files are syntactically correct. This is rather different from HTML, where by and large web browsers would tolerate a measure of badly formed code.

The checks of validity on an XML file work at two levels: check is well-formed  and check is valid. in additional you can use an xml parser which is a processor that reads an XML document and determines the structure and properties of the data in short description it's a (validity checker) to make sure that they are not violating the rules.

No comments:

Post a Comment