04 September 2009

When is an XML document well-formed? When is an XML document valid?

An XML document is valid if it has an associated DTD and the document follows the rules of the DTD. An XML document is well-formed if it follows three guidelines:
(1) it starts with an XML declaration, (2) it contains a root element that contains all other elements and (3) all elements are properly nested.

No comments:

Post a Comment