Well-formed XML document
From Wikipedia, the free encyclopedia
A "well-formed" XML document is defined as an XML document that has correct XML syntax. According to W3C, this means:
- XML documents must have a root element
- XML elements must have a closing tag
- XML tags are case sensitive
- XML elements must be properly nested
- XML attribute values must always be quoted
This should not be confused with a valid XML document, which is defined as a "well-formed" XML document which also conforms to the rules of a Document Type Definition (DTD) or an XML Schema (XSD), which W3C supports as an alternate to DTD.
[edit] See also
[edit] External links
- http://validator.w3.org/ The Official W3C Markup Validation Service
- http://www.w3.org/TR/xml W3C XML specification

