Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Marking elements as nil="true" in output xml

User_U0VZASep 12 2018 — edited Sep 12 2018

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!!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2018
Added on Sep 12 2018
0 comments
207 views