cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

XML Generator removing elements that should be left intact

Frijoles
New Contributor II

Hello, I'm trying to send some XML to a REST endpoint, but it looks like the XML Generator is removing any element that is empty. For example:

<?xml version="1.0" encoding="UTF-8"?>
<rootTest>
    <foo>bar</foo>
    <innerTest></innerTest>
    <secondTest />
</rootTest>

Using the code above, the output is missing the innerTest element and the secondTest element. This is causing a problem in the REST call since it's expecting that value even though it's empty. Is there a way to tell the snap to include empty elements?

 

0 REPLIES 0