The cdata tags shouldn't be included in the read data. CDATA tags are part
of the xml standard and are only used to wrap tags that could break the XML
format - making the content safer, but without changing the content.

This:
<node>Test</node>

Should read the same as this:
<node><![CDATA[Test]]></node>

So you shouldn't have to "extract" anything.

Zeh

On Mon, Jun 20, 2011 at 10:35 AM, Mendelsohn, Michael <
[email protected]> wrote:

> Hi list...
>
> I've searched around looking for a way to elegantly extract CDATA out of an
> xml node, with no luck.  I'm left thinking the only way to do it is to read
> the whole node and use a RegExp to strip the "<![CDATA[" and "]]>" .
>
> Does this sound right?
>
> Thanks,
> - Michael M.
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to