|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML tags? |
« View previous topic :: View next topic » |
Author |
Message
|
K_A |
Posted: Wed Nov 10, 2004 10:45 pm Post subject: XML tags? |
|
|
Apprentice
Joined: 10 Nov 2004 Posts: 32
|
Hi
Here's one from an XML novice:
I have managed to crate a message set, with the physical format of XML.
The input to my flow is a message in BLOB format and I populate the OutputRoot.XML stuff in a compute node where I set the Message set, message type, and message format.
The XML message comes out nicely on MQOUTPUT, as below example:
<MESSAGE>
<RECORD>
<FL1>abc</FL1>
<FL2>cde</FL2>
</RECORD>
<RECORD>
<FL1>efg</FL1>
<FL2>ghi</FL2>
</RECORD>
</MESSAGE>
Now, I would like the flow to embrace the whole thing with <XML> and </XML> tags. Also, in the <XML> tag normally there are some attributes, like version, UTF and so on.
Can I have the flow doing this for me automatically?
I realize this may be a stupid question, but still... |
|
Back to top |
|
 |
kirani |
Posted: Thu Nov 11, 2004 12:07 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You can either use Generic XML to create your output message or add top level tags in your MRM-XML message definition. At MRM message level you can also set properties to generate XML header.
One more option would be to add another compute node before MQOutput node, which will convert MRM-XML to generic XML and add XML declaration.
Please take a look at Working With Messages manual to see how to set Message properties for MRM-XML. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
shanson |
Posted: Mon Nov 15, 2004 5:28 am Post subject: |
|
|
 Partisan
Joined: 17 Oct 2003 Posts: 344 Location: IBM Hursley
|
Bear in mind that the MRM XML does not give you control over the encoding and version attributes of the xml decl. |
|
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
|
|
|
|