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 » Problem with XML control characters

Post new topic  Reply to topic
 Problem with XML control characters « View previous topic :: View next topic » 
Author Message
paranoid221
PostPosted: Tue Mar 30, 2010 5:36 am    Post subject: Problem with XML control characters Reply with quote

Centurion

Joined: 03 Apr 2006
Posts: 101
Location: USA

Hello guys,
I'm back after a long hibernation. And was immediately hit with this in my new assignment.
Situation:
A message flow that gets an XML on the MQInput node where the parser is set to XMLNSC. Then follows a compute node where the message is transformed to a COBOL copybook structure via a bunch field assignments from source to target.
But, when an XML control character is put into one of the fields in the XML (or example &lt; instead of <), the output message still has &lt; instead of the character <. I had expected the XMLNSC parser to convert it back to the actual character when it builds the message tree.

Am I missing some other step that needs to be done here to get that conversion to happen?
Please advise.


Last edited by paranoid221 on Tue Mar 30, 2010 6:49 am; edited 1 time in total
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 30, 2010 5:46 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The correct term for &lt; is 'XML entity'.
The XMLNSC parser *does* decode entities. If the content of a tag or attribute contains &lt; then the XMLNSC parser will put < into the value of the syntax element in the message tree.

Please post
- the input message, or a relevant fragment of it
- Trace node output
- output message, or a relevant fragment of it
Back to top
View user's profile Send private message
paranoid221
PostPosted: Wed Apr 14, 2010 3:36 pm    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2006
Posts: 101
Location: USA

Kimbert -

I apologize for pulling the trigger too soon. I should have first suspected the message producing application. However, the tool we use for MQ browsing(AppWatch) did not indicate the inherent problems and neither did RFHUtil. By sheer luck, I just opened my java client to browse the message on the queue and dump the contents into a file on my local system. Horrified by what I saw.
The sending application has put the following into the message when they wrote to the queue.

<DataTag>&amp;quot; This ain&amp;apos;t right &amp;quot;</DataTag>

If you observe how they have escaped it, it appears as though the & character in the escape sequence was escaped again:)
Gotta love it

Sorry again!!
_________________
LIFE is a series of complex calculations, somewhere multiplied by ZERO.
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 » Problem with XML control characters
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.