|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML Parsing Errors with inner CDATA sections |
« View previous topic :: View next topic » |
Author |
Message
|
JoseCallejas |
Posted: Mon Apr 23, 2007 8:36 am Post subject: XML Parsing Errors with inner CDATA sections |
|
|
Newbie
Joined: 29 Jan 2007 Posts: 3
|
hi,
i have a XML message that has a CDATA section and this CDATA section is an XML as well containing another CDATA section, like this:
<message>
<tag1>AAAAA</tag1>
<tag2>BBBBB</tag2>
<data>
<![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>
<message2>
<tagx>AAAAA</tagx>
<tagy>BBBBB</tagy>
<datax>
<![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>
<message3>............</message3>
]]>
<datax>
<tagz>BBBBB</tagz>
.......
</message2>
]]>
<tag3>CCCCC</tag3>
</message>
the problem happens when i try to use a XMLNS parser on the mqinput node, the parsing process for the first CDATA section ends in the first occurrence of ']]>' which actually is the end of the inner CDATA section, and the others nodes after the second CDATA section are not included in the data for the first section and the parsing stops with an error "XML Parsing Errors have occurred", so i don't get the correct representation of my XML and i'm not able to work correctly with that message in the broker.
Is there a workaround to do that?
Any suggestions are appreciated.
thanks in advance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 23, 2007 11:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes, you can't nest CDATA, I think. According to the XML Standard. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Apr 24, 2007 12:11 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
JoseCallejas |
Posted: Tue Apr 24, 2007 10:20 am Post subject: |
|
|
Newbie
Joined: 29 Jan 2007 Posts: 3
|
thank you for your attention, now i'm not using nested CDATA's sections . |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|