[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] BOM and encodings questions
- From: David Carlisle <davidc@nag.co.uk>
- To: xml-dev@lists.xml.org
- Date: Thu, 8 Mar 2007 17:46:22 GMT
> it is fairly easy to implement a parser that is able to handle
> alternating encoding that can support such cases, but I couldn’t
> find this mentioned anywhere in the standard(s).
It's not supported, each external entity must be in a single encoding.
If you use a text/xml mime type the encoding of the document might be
changed in transit by a text encoder that knows nothing about the xml
structure, so it would be very difficult to allow encoding switches mid
document, even if that were desired.
> I get to see a lot of XML documents that contain alternating encodings
> -- are they not well formed?
They may not be well formed, or they may be well formed but refer to
characters that the author of the document did not intend.
David
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]