Well-Formed and Valid XML

With or Without DTD

  • Well-Formed:

following the XML syntax rules without DTD

  • Valid:

the well-formed XML document conforms to DTD. DTDs describe the structure of the document.