array2xml
array2xml copied to clipboard
Self-Closing does not work for Empty Elements with Attributes
I need to create elements that have attributes, but no value that are self-closing. The current code creates:
<cargo weight="19200" unit="kg"> </cargo>
but what I need is:
<cargo weight="19200" unit="kg"/>
I'm using Array2xml to create a soap message and the current result is not legal code. This would fix that issue.