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 » CWF MRM Nulls

Post new topic  Reply to topic
 CWF MRM Nulls « View previous topic :: View next topic » 
Author Message
TonyG
PostPosted: Thu May 27, 2004 8:59 am    Post subject: CWF MRM Nulls Reply with quote

Newbie

Joined: 16 Jul 2002
Posts: 4
Location: UK

I have defined an MRM (using WBIMB v5) to transform a fixed format input to XML output.

This works fine, however I would like to use the MRM to remove NULL fields from the message and not render them as XML. I cant see how to do this in the MRM (without resorting to ESQL in a tidy-up compute node).

e.g. If a CWF character field is completety padded with spaces I do not want an XML tag generated when I change from MRM to XML domain.

Is there a way of setting the MRM up to achieve this?
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri May 28, 2004 12:51 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Using the Null Handling options in your CWF physical format, you could instruct the CWF parser to create nodes with NULL values for these fields.
However, I think you will still require some ESQL to remove the NULL fields from the tree - MRM null handling is designed for nodes which exist, but have an explicit value of NULL. If the node exists, the MRM XML writer will always output it.
Back to top
View user's profile Send private message
shanson
PostPosted: Tue Jun 01, 2004 5:11 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

Instead of not outputing a null field, you could consider using XML Schema Instance's mechanism for flagging a field as null - the xsi:nil attribute. This is supported by the V5 broker.
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 » CWF MRM Nulls
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.