CDATA

Andre Garzia soapdog at mac.com
Fri Jan 26 08:23:01 EST 2007


Bridger,

try not using CDATA, just escape your <, > and & to < > &

that should do the trick.

Andre

On Jan 26, 2007, at 5:13 AM, Bridger Maxwell wrote:

> Hey,
>  Here I am on  the usergroup again needing even more help on XML.   
> I am
> trying to use CDATA to store HTML-formatted text inside a node, but  
> I am not
> having much luck.  The text starts out looking like this:
> <p>Hey! 20857</p>
> <p>How are you?</p>
>
> Then I wrap it in the CDATA tag:
> <![CDATA[ <p>Hey! 20857</p>
> <p>How are you?</p> ]]>
>
> Then I store it in the XML.  It looks like this in the XML:
> <htmlText><![CDATA[ <p>Hey!</p
> <p>How are you?</p> ]]></htmlText>
>
> Then upon retrieving it, I only get the first line.  In this case:
> Hey!
>
> In an earlier post on this Ken Ray said:
>
>> Yes, it is AFAIK - if you have *just* CDATA, you should be able to  
>> read
> it,
>> but if you have both text contents of a node AND CDATA, the CDATA  
>> is not
>> read. It's odd that it works on Windows, though, and not Mac since I
> thought
>> it used the same library code under the hood.
>
> I am running OS X and plan to release for OS X, so there is a bug, but
> because I am not storing anything else inside the CDATA text, I  
> didn't think
> it would affect me.  Thanks again for all the help you guys have  
> given me
> throughout my struggle with XML.
>
>  TTFN
>    Bridger Maxwell
>    Christa McAuliffe Space Education Center
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list