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 » How to get a short form of XML empty tag from MRM XML?

Post new topic  Reply to topic
 How to get a short form of XML empty tag from MRM XML? « View previous topic :: View next topic » 
Author Message
jamesyu
PostPosted: Thu Feb 19, 2009 8:40 am    Post subject: How to get a short form of XML empty tag from MRM XML? Reply with quote

Acolyte

Joined: 31 Jan 2007
Posts: 70

I want an short form empty element in the XML output message, such as:
<tag/> instead of <tag></tag>.

I understand this is can be done in XML domain by setting the content of the element to NULL. For instance:

SET OutputRoot.XML.Invoice.Cashier.(XML.Content) = NULL;

generates the following XML:

<Invoice><Cashier/></Invoice>

But I am handling XML in MRM domain now. If I say:

SET OutputRoot.MRM.Invoice.Cashier VALUE = NULL;

It always creates the long form XML empty tag which is not what I want for some business reason.

<Invoice><Cashier></Cashier></Invoice>

How can get the short form of XML empty tag in MRM XML?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 19, 2009 9:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

All physical format information is carried in the message definition. Look on the XML tab for the field.
Back to top
View user's profile Send private message
jamesyu
PostPosted: Thu Feb 19, 2009 10:34 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2007
Posts: 70

mqjeff wrote:
All physical format information is carried in the message definition. Look on the XML tab for the field.


Can you be more specific on this? Which definition can display XML empty tag with short form?
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Feb 19, 2009 10:58 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Is there a particular reason why you are using the MRM parser for writing XML? XMLNSC would be much more future proof. MRM XML has a number of known limitations which are not likely to be fixed.
Back to top
View user's profile Send private message
jamesyu
PostPosted: Thu Feb 19, 2009 11:30 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2007
Posts: 70

kimbert wrote:
Is there a particular reason why you are using the MRM parser for writing XML? XMLNSC would be much more future proof. MRM XML has a number of known limitations which are not likely to be fixed.


This is required by my customer. I know this is not an issue if using the XMLNSC domain. I just wanted to know if the same thing can be done in MRM - a shor form of XML empty tag.
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 » How to get a short form of XML empty tag from MRM XML?
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.