Re: [xml-dev] [Summary] Why is Encoding Metadata (e.g. encoding="UTF-8") put Inside the XML Document?

From
Tim Bray <>
To
"Rudick, Tom" <>
Date
2007-09-21T07:25:00Z
ID
<>
Thread
Re: [xml-dev] [Summary] Why is Encoding Metadata (e.g. encoding="UTF-8") put Inside the XML Document?
On Sep 20, 2007, at 10:05 AM, Rudick, Tom wrote:

> So we know that the first character in an xml document must be <.
> Which has the ASCII value of 60.

No, that's not true.  The smart thing to do would to point at http:// 
www.w3.org/TR/REC-xml/#sec-guessing-no-ext-info, which has a very  
complete explanation of how this is done.

> So a parser will keep reading in bytes until it gets up to 60.

No!  Good heavens.  Go read the specification.  -Tim