I am trying to figure out how I can skip an attribute or element writing on to XML. For ex:
<File>
<data>
<name>...</name>
<id>...</id>
</data>
<noData>..</noData>
</File>
<noData>
is enumerated and can only accept 'Y' and this needs to be populated only when there are no records to write in <data>.
In other words if values are populated for <data>
then I need to skip <noData>
or if count of records is 0 then I need to skip <data>
and populate <noData>
with 'Y'.
I am trying to achieve this SAP BODS but no luck so far.
Can you help?
Basically want to understand how will I skip the elements writing onto XML if their values are not populated or they got null values.