IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
 View Only
  • 1.  Only close tag for empty XML fields

    Posted Thu September 04, 2008 10:43 AM

    Originally posted by: SystemAdmin


    I'm not all that familiar with using XML; just the basics, but I imported a DTD and I have it working, but the XML document I'm trying to re-create, only has the end/close tag for each field with no value. My output from the TX type tree (8.1), has the open and close tag for each field regardless of content.

    Looking at the field types, it shows them set to XML and fields I have never seen in a type tree before, and some I can't change (Mixed=false, abstract=false).

    What I need to know is if there is a way to only produce the close/end tag for fields without values.

    Thanks!
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Only close tag for empty XML fields

    Posted Fri September 05, 2008 12:10 AM

    Originally posted by: SystemAdmin


    If you are using a xerces based xml tree, you can not create empty elements with closed/end tag, if you use classic tree you can do it by using empty type syntax property
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Only close tag for empty XML fields

    Posted Fri September 05, 2008 03:19 AM

    Originally posted by: janhess


    If your output is optional then if you have your NONE at the right level (Element level usually) then it won't output empty tags.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender