on 11-21-2007 11:54 PM
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
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****
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.