I don't think Rev's XML library properly supports CDATA. This is a problem I ran into, so I did what Andre suggested, and replaced < and > with something else I wouldn't use and then replaced them when I read the node.

At 01:13 AM 1/26/2007, you 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:
<![CDATA[ <p>Hey!</p <p>How are you?</p> ]]> 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 [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-682-4588

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
  • Re: CDATA Peter T. Evensen

Reply via email to