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.
"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
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