1 2 3 4 5 6 7
document ::= prolog element misc* prolog ::= XMLDecl misc* (doctypedecl misc*)? XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? ws? '?>' VersionInfo ::= ws