OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

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

Re: CDATA sections in W3C XML Infoset



On Fri, 30 Mar 2001, David Carlisle wrote:

> 
> > That doesn't make me any happier about the prospect of
> > having to re-write our software to suit the changing whims of W3C.
> 
> are you saying that currently your software treats
> <![CDATA[<a>]]> differently from &lt;a&gt; if so, in what way?

In this case "my software" is the Xerces DOM parser, and yes, I am
saying that this software treats <![CDATA[<a/>]]> differently from
&lt;a/&gt;.

 1. The DOM gives you a different node type for the former than
    it gives you for the latter.
 2. If you hand the value of the node you get back for the former
    to an XML parser you get a successfully parsed document;
    if you hand &lt;a/&gt; to the parser it fails.

-- 
Bob Kline
mailto:bkline@rksystems.com
http://www.rksystems.com