xml-js
xml-js copied to clipboard
Empty elemen is object only.
Hello!
How can I convert empty element <element/>
to:
{
"element": null
}
or
{
"element":""
}
It may be:
{
"element": {
"-self-closing": "true"
}
}
Thanks, but that's not what I need.
I would like <empty></empty>
to return just { empty: null }