Re: [xml] How to determine document encoding



On Wed, Jan 26, 2005 at 03:29:48AM +1300, BJ Chippindale wrote:
Doesn't this limit the efficacy and universality of XML?   You can't 
count on
the sender actually putting the encoding where it belongs, or even 
including one
at all.

  I don't understand what you're talking about.
The part of the spec covering encoding detection is 
  http://www.w3.org/TR/REC-xml/#sec-guessing
have you read it ? 

The topic was embedding an XML instance with its own encoding into
another instance. An XML entity can be of only one encoding flagged
at the beginning, which is a very sound principle. Embedding an
XML instance within another as character data is just refusing to
use the extensibility of XML and a fairly broken design. This is
my point of view on the subject of the initial post.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]