Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Send an ''empty'' tag on xml

victor_trindade
Explorer
0 Kudos

We need to send some tags in XML, but they only appear if they are filled with values

When they are null or empty, they dont appear.

Is there a way that we can send them?

Example:

<PST>0.00</PST>

Like I said, when its 0 in value, the tags dont appear

Any help is appreciated

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

It's easy:

xml = xml && '<PST>0.00</PST>'.