Základním požadavkem kladeným na každý XML dokument je, že musí být dobře utvořen (well-formed
. A to nastane, právě když:Taken as a whole, it matches the production labeled document:
[1] document ::= prolog element Misc*
tj. obsahuje prolog (hlavičku) a právě jeden, tzv. kořenový element.
It meets all the well-formedness constraints given in the specification.
Each of the parsed entities which is referenced directly or indirectly within the document is well-formed.
Podívejte se na tutoriál základů XML v češtině