Well-formed XML

  • Contains one or more elements

  • There is exactly one root element

  • Meets all other well-formedness constraints (every tag is closed, every attribute value is quoted, etc...)

  • Any referenced entity is also well-formed

Note

Namespace for prefix does strictly speaking not have to be defined, allowing: <pre:test>