Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Null or Empty Value in XML

Is there a way to dictate whether the XML coming in or out of XI will use either:

(1) <field></field> (represent blank value)

(2) <field /> (represent Null value)

I see that it always uses (2) regardless. If I pass into XI <field></field>, I see that it changes it into <field />. Likewise, setting a field to constant "" will send it out as <field />. I would like to instead, send it out as <field></field>. I am hoping there's a standard way to handle . I am using HTTP so custom module is out of the question.


Former Member
Former Member replied


Dont worry about that much. When you send a constant for the field in sxmb_moni it shows as <field />. But if you open the file by right clicking and view source you can see the spaces like <field> </field>. This is how XI treats the spaces.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question