Extracting XML Document embeded in Envelope

Hi allMy problem is how do I extract the XML Document embeded in the Envelope Is there a method to do the same Since it is present in the cdata section as a string How do i reconvert it to a XML document I am using jdom TIASanjay
[292 byte] By [san_gomes] at [2007-9-26 2:28:39]
# 1
you could write the string into a new XML file...?
R2D2 at 2007-6-29 9:44:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Sanjay,

We fixed that now and it's working.

FIY:

To extract data from CDATA section with JDOM extact the text of the Element as a String str and change it as InputStream

InputStream in;

SAXBuilder builder;

byte[] bytes = str.getBytes();

InputStream in = new ByteArrayInputStream(bytes);

to call then

Document doc = builder.build(in);

the new document can now be used to be parsed as usual.

Cheers

Seb

smarechal at 2007-6-29 9:44:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...