Re: [xml-dev] UTF-8+names

From
Elliotte Rusty Harold <>
To
Tim Bray <>
Date
2003-10-19T03:44:41Z
ID
<p06002000bbb7b88097f0@[192.168.254.4]>
Thread
Re: [xml-dev] UTF-8+names
At 2:18 PM -0700 10/18/03, Tim Bray wrote:


>Nope, &&; in the UTF-8+names encoding represents a single & 
>character. &lt; represents nothing but &lt;, since it's not defined 
>to represent anything else by UTF-8+names.  &uuml; represents the 
>single u-with-umlaut character, because that's inherited from HTML. 
>-Tim

I'm still not convinced. These two documents are the same:

<?xml version="1.0" encoding="UTF-8"?>
<root><</root>

<?xml version="1.0" encoding="UTF-8+names"?>
<root>&lt;</root>

Both are malformed. In order to make this well-formed we need a 
double ampersand:

<?xml version="1.0" encoding="UTF-8+names"?>
<root>&&lt;</root>

Or am I missing something?
-- 

   Elliotte Rusty Harold
   
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA