Need to copy all the cdata elements to output xml using xslt
ajay bhadauria <[email protected]> Wed, 16 Nov 2011 20:58:47 -0800 (PST)
| Newsgroups | gmane.text.xml.xalan.java.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I need to copy all the elements including cdata element of a parent element. I do not know that which child element is going to have cdata element however I need to copy all the children to output xml file using xslt. Is there any we can do that ? Any help will be great. My XML file is <SwInt:RequestPayload xmlns:SwInt="abc.txt"> <SwInt:firstName>Robert</SwInt:firstName> <SwInt:lastName>Dowson</SwInt:lastName> <SwInt:address>Nokesville</SwInt:address> <SwInt:Data><![CDATA[aaaaa<>]]></SwInt:Data> <SwInt:Data1>aaaaa<></SwInt:Data1> </SwInt:RequestPayload> Regards Ajay