← Prev in month ← Prev in thread

XML inside another XML

From
<>
To
Date
2004-02-12T17:21:36Z
ID
<>
Thread
XML inside another XML
I have an XML used as a wrapper, that contains another XML. ( The outside XML is used as the communication header )
I have to handle a case where the inside XML is not well formed. ( Basically I m sending a response message saying that the request XML was corrupt )
Obviously if I just embedd the corrupt XML inside the wrapper XML, I get error.
What are the possibilities here ?
1. using Cdata ?
2. Is there any way/method is java wherin I can convert the inside XML to a '&lt;', '&gt;' kind of form ?
3. What is that conversion ( '&lt;', '&gt;' ) called ( encoding ? )

Thanks a lot
--sony
← Prev in month ← Prev in thread