Hi, I am parsing a text format and some optional elements are encoded as empty strings or strings with space characters only. How to have these elements omitted in the output XML?
The element is declared as: <xs:element name="field1" type="xs:string" minOccurs="0" dfdl:length="9" dfdl:lengthKind="explicit" /> Thanks to the properties textStringJustification="center" and textTrimKind="padChar", the parsed string is trimmed and the output XML looks like: <field1></field1> I have tried specifying properties emptyValueDelimiterPolicy, nilKind, nilValueDelimiterPolicy and nilValue but can't find a combination to have this element removed in the output XML. Is it possible? If yes, could you please show me how? Thanks, Patrick.
