Skip to Content
0
Former Member
Apr 05, 2012 at 10:20 PM

XSLT question

16 Views

Hi folks,

I need to write an XSLT that will extract the CDATA Segment into XML structure.

input.xml
<parent_messages>
<result>
<code>OK</code>
<details>
<Body messageType="CUSTIMPORT"><![CDATA[
<Shipment>
<company>DE</company>
<plant>01</plant>
<shipmentId>DE20120210</shipmentId>
</Shipment>]]>
</Body>
</details>
</result>
< /parent_messages>

Needed Output.xml
<
parent_messages>
<result>
<code>OK</code>
<details>
<Shipment>
<company>DE</company>
<plant>01</plant>
<shipmentId>DE20120210</shipmentId>
</Shipment>
</Body>
</details>
</result>
< /parent_messages>

XSLT Mapping???

Can some one please guide or suggest me?

Kind Regards,

Peter

K