I have the following xml:
<Company>
<Section>ABC</Section>
</Company>
I am conducting a negative test of sorts and want to send a NULL value to the "Section" element of the xml.
I tried the following:
* set xml /Company/Section = (null)
However, what happens is that the opening tag of the element gets deleted altogether resulting in:
<Company>
</Section>
</Company>
Expected result should be:
<Company>
<Section></Section>
</Company>
I would've liked to try .replace but the value inside "Section" is dynamic and so I cannot effectively use .replace. I also tried an empty string ('') and the same behavior happens where the opening tag gets deleted.
Please advise.