ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Parsing Errors with inner CDATA sections

Post new topic  Reply to topic
 XML Parsing Errors with inner CDATA sections « View previous topic :: View next topic » 
Author Message
JoseCallejas
PostPosted: Mon Apr 23, 2007 8:36 am    Post subject: XML Parsing Errors with inner CDATA sections Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 23, 2007 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Tue Apr 24, 2007 12:11 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

http://www.w3.org/TR/2000/REC-xml-20001006 Section 2.7
It's a good idea to put this site in your bookmarks and refer to it whenever you have a question about XML.
Back to top
View user's profile Send private message
JoseCallejas
PostPosted: Tue Apr 24, 2007 10:20 am    Post subject: Reply with quote

Newbie

Joined: 29 Jan 2007
Posts: 3

thank you for your attention, now i'm not using nested CDATA's sections .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Parsing Errors with inner CDATA sections
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.