BW 5.13 | Default empty value for xml result
TIBCO BusinessWorks™

Hi, 

In my solution, I need to create XML file. All the attributes are optional. 

In the export, the files contain only the elements that contain a value. the empty elements are missing.

for example:

<employee>

    <details>

        <name> Mike Portnoy</name>

        <phone> 0055005500 </phone>

     </details>

    <address>

        <street> John Patrucci</street>

        <city> Berlin  </city>

     </address>

</employee>

The desired result:

<employee>

    <details>

        <name> Mike Portnoy</name>

        <phone> 0055005500 </phone>

     </details>

    <address>

        <street> John Patrucci</street>

        <city> Berlin  </city>

     </address>

    <age />

    <family_status />

   <dogs_friendly />

</employee>

 

Thanks for helpers :)

Login