W3C home > Mailing lists > Public > xml-dist-app@w3.org > June 2001

Re: Comments and element content for serialization

From: Martin Gudgin <marting@develop.com>
Date: Fri, 1 Jun 2001 19:35:59 +0100
Message-ID: <014401c0eac9$b5383660$0300a8c0@greyarea>
To: "Rich Salz" <rsalz@zolera.com>, "W3C XP" <xml-dist-app@w3.org>



are equivalent from the Infoset perspective. Strictly speaking the first two
examples are not, unless you're ignoring comments ( like SAX ContentHandler
does for example ). Running all 4 of those elements through a SAX
ContentHandler would generate the same result.

Martin Gudgin

----- Original Message -----
From: "Rich Salz" <rsalz@zolera.com>
To: "W3C XP" <xml-dist-app@w3.org>
Sent: Friday, June 01, 2001 3:35 PM
Subject: Comments and element content for serialization

> Which of the following are legal serializations for the integer 12?
> <i>1<!-- x-->2</i>
> <i><!-- x-->12</i>
> <i><![CDATA[1]]>2</i>
> <i><![CDATA[12]]></i>
> In looking at the sec5.1 serialization rules, it says simple values are
> character data without any subelements.  But these are siblings, not
> children.
> Seems like a clarification is needed.
> /r$
Received on Friday, 1 June 2001 14:37:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:01 GMT