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 » & inside XML message

Post new topic  Reply to topic
 & inside XML message « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Wed Sep 12, 2001 6:49 am    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

I have these ESQL in a compute node of a simple flow (MQINPUT->COMPUTE->MQOUTPUT):

SET INPUTMSG = InputRoot.XML."MESSAGE" ; SET RESULT = '12345'
SET OutputRoot.XML.RESULT.DATA.(XML.AsisElementContent) = RESULT || INPUTMSG ;
It works fine with input message

<MESSAGE>123456789ABCDEFG</MESSAGE>
It fails when the input message is
<MESSAGE>123456789&ABCDEFG</MESSAGE> (with & inside the message)
The error message in the user trace is
ParserException BIP5004E: An error has been reported by the BIPXML4C
component: code '65601'; public id ''; line number '1'; column number
'27'; current element 'MESSAGE'; error text 'Unterminated entity reference'.
The above error was reported by the XML parser.Check that the XML
message is well-formed and that it adheres to the XML specification.

I know that '&' is a special character for XML. How should I handle it when the input
message contains '&'


[ This Message was edited by: Kelvin Yung on 2001-09-12 07:53 ]
Back to top
View user's profile Send private message
Outdesign
PostPosted: Mon Sep 17, 2001 3:22 am    Post subject: Reply with quote

Apprentice

Joined: 16 Sep 2001
Posts: 38
Location: Hampshire, UK

Use the correct XML escape sequence :
& ampersand, &
< left angle bracket, <
> right angle bracket, >
' single quote character (an apostrophe), '
" double quote character, "

123456789&ABCDEFG
Back to top
View user's profile Send private message Visit poster's website
Outdesign
PostPosted: Mon Sep 17, 2001 3:25 am    Post subject: Reply with quote

Apprentice

Joined: 16 Sep 2001
Posts: 38
Location: Hampshire, UK

Hopefully the formatting will come out better here ...

Use the correct XML escape sequence :
&amp; ampersand, &
&lt; left angle bracket, <
&gt; right angle bracket, >
&apos; single quote character (an apostrophe), '
&quot; double quote character, "

<MESSAGE>123456789&amp;ABCDEFG</MESSAGE>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » & inside XML message
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.