Posted: Mon Mar 07, 2016 8:13 am Post subject: XML declaration check in incoming message using ESQL
Acolyte
Joined: 19 Oct 2012 Posts: 63
Hi Experts,
I have requirement like receiving xml message inside CDATA as a webservicce. I need to check whether xml declaration is present inside CDATA using ESQL message.
If xml declaration presents inside CDATA . I have to send xml declaration inside CDATA response as well.
Please let me know if you have any idea how to check xml declaration present in incoming message.
Posted: Mon Mar 07, 2016 8:20 am Post subject: Re: XML declaration check in incoming message using ESQL
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
anilmekala wrote:
Please let me know if you have any idea how to check xml declaration present in incoming message.
Parse the CDATA XML. Look for a declaration statement.
Same as you'd check for a declaration statement in any inbound piece of XML. Just that it's not already in a message tree for you because it's not been through the input node's parser so you have to parse it yourself. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum