Dear SOA experts,
We have a very basic requirement where we need to set all the elements where there is no input value and the xsd mention the element to be nillable="true", to be set as nil="true" in the output xml
As an example,
if SUPPLIERADDRESS1 has no input value
and in the schema it's declared as below:
<xs:element minOccurs="1" maxOccurs="1" name="SUPPLIERADDRESS1" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="40" />
</xs:restriction>
</xs:simpleType>
</xs:element>
Then the output XML should have the following tag:
<SUPPLIERADDRESS1 i:nil="true"/>
Please note that this should be only applicable for the elements defined in XSD with nillable="true" and minOccurs="1".
Please let us know what we need to change in the XSLT or somewhere to achieve this.
Thanks a lot!!