Are processing instructions before the first element legal? 2003-02-25 - By Joseph Kesselman
To answer questions like the one in the subject, check the XML Recommendation, available at http://www.w3.org/TR/REC-xml
The EBNF descripton of a document says: [1] document ::= prolog element Misc* Prolog is defined as [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? And Misc is defined as [27] Misc ::= Comment | PI | S
So: A prolog, which comes before the document element, _can_ contain one or more misc's, each of which _can_ be a Processing Instruction (PI).
______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody gets hurt.")
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|