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 tags?

Post new topic  Reply to topic
 XML tags? « View previous topic :: View next topic » 
Author Message
K_A
PostPosted: Wed Nov 10, 2004 10:45 pm    Post subject: XML tags? Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Thu Nov 11, 2004 12:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
shanson
PostPosted: Mon Nov 15, 2004 5:28 am    Post subject: Reply with quote

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
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 tags?
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.