[jboss-dev-forums] [JBoss ESB Development] New message: "Handling missing elements with Smooks"

Mike Velikovich do-not-reply at jboss.com
Mon Jan 18 11:52:44 EST 2010


JBoss development,

A new message was posted in the thread "Handling missing elements with Smooks":

http://community.jboss.org/message/520616#520616

Author  : Mike Velikovich
Profile : http://community.jboss.org/people/mvelik

Message:
--------------------------------------------------------------
Hello,
 
I need to process a message which contains optional elements and transform it to another XML format. An XML is received from an external system and all elements are defined as optional. This means that if a value of the element is null, it will not exist in the file at all. We are using SMOOKS to handle transformations. SMOOKS recommends 2 ways of handling missing variables - one which uses an ! after the variable followed by the default value, and another one which uses <#if> tag and ?? syntax.
 
So far none of the above works.
 
Do you have any recommendations/examples?
 
Thank you in advance,
 
Mike

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/520616#520616




More information about the jboss-dev-forums mailing list