On Wednesday, June 19, 2002, 3:21:09 AM, Martin wrote:<snip>
MD> At 20:20 02/06/17 -0700, Tim Bray wrote:
Martin Duerst wrote:
I do not know of anything within the XML recommendation which requires the application to pass a XML declaration through, meaning an XML parser does not neccessarily provide this encoding information to the application.MD> and MD> you may be able to tell a parser, but then you can't distinguish MD> between a forbidden encoding and broken syntax.
Its as simple as looking for the encoding pseudo-attribute on the xml declaration.