yep,
read a char at a time.
begin adding to the stringbuffer after CDATA[
stop adding to stringbuffer when you encounter the ]
"John Davison" <> wrote in message
news: om...
> When I call node.getNodeValue() on a CDATA node, I get the following
> string:
>
> <![CDATA[
> <?xml version="1.0"?>
> <RESPONSE>
> <ERRORMSG>INVALID USER</ERRORMSG>
> </RESPONSE>
> ]]>
>
> Is there a convenient way to get just the CDATA text? In other words,
> I want the following output without the CDATA tags:
>
> <?xml version="1.0"?>
> <RESPONSE>
> <ERRORMSG>INVALID USER</ERRORMSG>
> </RESPONSE>
>
> Thanks in advance,
>
> John
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.714 / Virus Database: 470 - Release Date: 7/2/2004