Hi All,
I have a following xml:
<?xml version="1.0" encoding="UTF-8"?>
<ForwardRequestResponse xmlns:m="http://webservices.kuoni.ch">
<ForwardRequestResult><![CDATA[<?xml version="1.0" encoding="windows-1252"?><Response Version="2.5" From="KUONEKA0" To="CETS" TermId="XXXXXX" Date="18062009" Time="163523" Type="ERROR" Confirm="X" Agent="XXXXXX" Lang="EN" UserCode="X" UserType="X" UserName="X" UserFirstName="X" Mode="X"><Err><ErrorNr>9999</ErrorNr><ErrorText>Fehlerhafter Request</ErrorText><ErrorText>element <Request> attribute: TermId is too long</ErrorText></Err></Response>]]></ForwardRequestResult>
</ForwardRequestResponse>
And I want to extract a CDATA out of it i.e.
<?xml version="1.0" encoding="windows-1252"?>
<Response Version="2.5" From="KUONEKA0" To="CETS" TermId="XXXXXX" Date="18062009" Time="163523" Type="ERROR" Confirm="X" Agent="XXXXXX" Lang="EN" UserCode="X" UserType="X" UserName="X" UserFirstName="X" Mode="X">
<Err>
<ErrorNr>9999</ErrorNr>
<ErrorText>Fehlerhafter Request</ErrorText>
<ErrorText>element <Request> attribute: TermId is too long</ErrorText>
</Err>
</Response>
Could someone please give me some pointers on how to do it?