Author |
Message
|
vanshulchawla_target |
Posted: Wed Oct 06, 2010 4:03 am Post subject: Converting CDATA TO XMLNSC |
|
|
Apprentice
Joined: 19 May 2010 Posts: 25
|
I need to convert CDATA section of below message to XMLNSC.
-------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wscoor="http://schemas.xmlsoap.org/ws/2004/10/wscoor">
<soapenv:Header soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<wsat-ext:imported xmlns:wsat-ext="http://www.ibm.com/ws-tx/wsat/2007/12"/>
</soapenv:Header>
<soapenv:Body soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<p561:getGuestOrderListResponse xmlns:p561="http://ejb.rpc.webservices.services.interop.yantra.com">
<getGuestOrderListReturn xsi:type="xsd:string">< |
mqjeff |
Posted: Wed Oct 06, 2010 4:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It's already a bitstream.
It's also illegal for a CDATA section to contain an <?xml declaration. |
|
Back to top |
|
 |
vanshulchawla_target |
Posted: Wed Oct 06, 2010 4:21 am Post subject: |
|
|
Apprentice
Joined: 19 May 2010 Posts: 25
|
Thanks Jeff.Its a 3rd paty XML so we cant change it but will speak to them ragarding this.
Please also let me know how to create XMLNSC structure out of that CDATA part? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 06, 2010 4:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You said you were getting an error trying to call asbitstream.
It's already a bitstream in the cdata section. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Oct 06, 2010 6:54 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I am getting error at ASBITSTREAM piece. |
In future, please either
a) quote the error or
b) don't mention it at all
Quote: |
can you please suggest any other way to parse this CDATA |
Yes. Don't bother with a CAST statement. Just use CREATE...PARSE...DOMAIN 'XMLNSC' on the value of the tag. |
|
Back to top |
|
 |
vanshulchawla_target |
Posted: Wed Oct 06, 2010 7:58 pm Post subject: |
|
|
Apprentice
Joined: 19 May 2010 Posts: 25
|
Thanks.Completed that piece yesterday only but forgot to respond.
My bad. |
|
Back to top |
|
 |
rekarm01 |
Posted: Wed Oct 06, 2010 9:12 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
mqjeff wrote: |
It's also illegal for a CDATA section to contain an <?xml declaration. |
Not quite. It's illegal for a CDATA section to contain ']]>'. Any other sequence of character data is legal. |
|
Back to top |
|
 |
|