On Thu, Mar 10, 2005 at 07:07:25PM +0200, Cesar Martinez Izquierdo
> I'm not an XML expert, so I was reading yesterday the XML
> specification before reporting the bug, and it was not clear for me if
> blank space matters.

(FYI)

It's actually clearer when you look at the formal definitions:

document ::= prolog element Misc* [1]
prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [2]
XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' [3]
Misc ::= Comment | PI | S [4]
S ::= (#x20 | #x9 | #xD | #xA)+ [5]

Meaning that a document, if it has an XML declaration, MUST begin with
'<?'. The first whitespace (S) will be after the declaration end ('?>').

Mike

[1] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-document
[2] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-prolog
[3] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-XMLDecl
[4] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Misc
[5] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-S


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to