Chapter 3 — Validating and Using XML
A well-formed XML document follows the basic syntax rules of XML. These include having a single root element, properly nested tags, and correctly written attributes. Well-formed documents can be parsed and processed by XML tools and applications.
Example: Well-formed XML
<person>
<name>Maria</name>
<age>30</age>
</person>All elements are properly opened and closed, making the document valid in structure.