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 question on coding shortcut

Post new topic  Reply to topic
 XML question on coding shortcut « View previous topic :: View next topic » 
Author Message
kwelch
PostPosted: Thu Apr 25, 2002 4:36 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi,

I am wondering if there is any way to force WMQI to create the XML shortcut tag instead of a beginning and ending tag with no value?
For example:

If I code Set OutputRoot.XML.MSG.field1 = NULL; I get no tags
If I code Set OutputRoot.XML.MSG.field1 = ''; I get <MSG><field1></field1></MSG> empty tags

The reason I am asking is I am building XML messages using the ACORD XML format and some of the tags can be around 80-100 bytes, maybe longer. These messages have the potential to get huge and if I can save some space by forcing the shortcut, i.e. <MSG><field1/></MSG> I would like to do so.

Any ideas of how to do this? Thanks!

Karen
Back to top
View user's profile Send private message Send e-mail
vmcgloin
PostPosted: Thu Apr 25, 2002 4:47 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Assuming you are using WMQI 2.1:

"XML body and empty elements
For most parsers, an empty element of the form <tag></tag> is identical to one of the form <tag/>. The default behavior of the Generic XML Parser in WebSphere
MQ Integrator is to generate empty elements in the first of these two forms. If you specifically require the second (short) form of empty element, set the content of the element to be NULL. That is,
SET OutputRoot.XML.tag1.tag2.(XML.Content) = NULL;
generates the following XML:
<tag1><tag2/></tag1>"
From p32 WebSphere MQ Integrator ESQL Reference
Back to top
View user's profile Send private message
kwelch
PostPosted: Thu Apr 25, 2002 5:14 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Yes we are using 2.1 and my search of the ESQL pdf did not turn that up but I went back and found it. Thank you very much!

Karen
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML question on coding shortcut
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.