• 2 replies
  • Latest Post - ‏2017-01-02T21:03:56Z by kimbetr
10 Posts

Pinned topic DFDL Trim Space

‏2016-11-15T17:38:50Z | dfdl

I require my output file to trim the spaces which are there in the element xyz,

I used the below in dfdl xsd , however it is not working and still having spaces. Please help..

<dfdl:nilKind="literalValue" dfdl:nilValue="%ES;" dfdl:useNilForDefault="yes" ibmDfdlExtn:sampleValue="value9" minOccurs="0" name="xyz" nillable="true" type="xsd:string" dfdl:textTrimKind="padChar" dfdl:textStringPadCharacter="%SP;" />

  • fjb_saper
    159 Posts

    Re: DFDL Trim Space


    If you defined xyz as fixed length you're out of luck.

    You did not show the definition for the length of the element...

  • kimbetr
    3 Posts

    Re: DFDL Trim Space


    The DFDL textTrimKind property is for parsing only. The specification clearly states that.

    You need the 'truncateSpecifiedLengthString' property ( please use Google for details ).