What is the difference between well formed and valid XML documents?

 Posted by Ddd on 1/31/2011 | Category: Web Services, Remoting Interview questions | Views: 3223 | Points: 40

Well formed documents

They check that there is a root tag, start tag has an end tag, proper casing is there
for the elements. There is no check on the datatypes of the elements, the order in
which they occur or no primary keys or any other constraints.

Valid documents

They are well formed documents. IN addition they also check the datatypes, the order
in which the elements coour occur as well as the primary keys. They follow the rules of a logical
structure (example: a DTD, XSD, XDR)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response