cancel
Showing results for 
Search instead for 
Did you mean: 

CDATA in the soap receiver adapter ?

Former Member
0 Kudos

Hi Guys,

I am passing the whole xml into a string on the target side, i did java mapping and on the receiver side system the CDATA is not recognised. Is there any way i can eliminate this cdata ?

<?xml version="1.0" encoding="utf-8" ?>

- <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

- <soap:Body>

- <C_XML xmlns="http://bradtest.velsol.com/">

- <sXML>

- <![CDATA[ "<?xml version="1.0" encoding="UTF-8" ?><DEBMAS02><IDOC BEGIN="1"><EDI_DC40 EGMENT="1>00000000</DBMON></E1KNKKM></E1KNA1M></IDOC></DEBMAS02>"

]]>

</sXML>

</C_XML>

</soap:Body>

</soap:Envelope>

any help would be appreciated, how to eliminate the CDATA

Thanks,

Raj

Message was edited by:

raj reddy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

The deleteData() method deletes data from a CDATA node.

<b>Syntax</b>

CDATANode.deleteData(start,length)

<b>Please try following code</b>

xmlDoc=loadXMLDoc("books_cdata.xml");

var x=xmlDoc.getElementsByTagName("html")[0].childNodes[0];

x.deleteData(0,3);

document.write(x.data);

For more help go through following link

<b>http://www.w3schools.com/dom/met_cdata_deletedata.asp</b>

Thanks

Abhishek Mahajan

***Please Reward points if find helpful****

Former Member
0 Kudos

Hi Abhishek,

Thanks for the info and it was very useful

Raj