Comment and PI in a Mixed or children elements...

David Megginson ak117 at
Fri May 8 23:55:16 BST 1998

Peter Murray-Rust writes:

 > BTW I didn't answer the question, did I? :-) I think you will find it is
 > yes, but trust a parser and not me.

By all means, run problems like this through a good parser (don't use
AElfred for this purpose, since it is too tolerant of errors).

In the end, however, the only trustworthy source is the grammatical
productions in the spec (together with constraints and other normative

[39] element ::= EmptyElemTag | STag content ETag

[43] content ::= (element | CharData | Reference | CDSect | 
                  PI | Comment)*

All the best,


David Megginson                 ak117 at
Microstar Software Ltd.         dmeggins at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list