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