|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with XML control characters |
« View previous topic :: View next topic » |
Author |
Message
|
paranoid221 |
Posted: Tue Mar 30, 2010 5:36 am Post subject: Problem with XML control characters |
|
|
 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 < instead of <), the output message still has < 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 |
|
 |
kimbert |
Posted: Tue Mar 30, 2010 5:46 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
The correct term for < is 'XML entity'.
The XMLNSC parser *does* decode entities. If the content of a tag or attribute contains < 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 |
|
 |
paranoid221 |
Posted: Wed Apr 14, 2010 3:36 pm Post subject: |
|
|
 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>&quot; This ain&apos;t right &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 |
|
 |
|
|
 |
|
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
|
|
|
|