What is a Well-Formed XML Document?


A textual object is a well-formed XML Document if:

  1. Taken as a whole, it matches the production labeled document
  2. It meets all the well-formedness contraints given in this specification:
    http://www.w3.org/TR/REC-xml
  3. Each of the parsed entities which is referenced directly or indirectly whitin the document is well-formed