xml-js
xml-js copied to clipboard
xml to js is not converting empty comments
sample xml:
<test><!----></test>
output:
{
"elements": [
{
"type": "element",
"name": "test-child"
}
]
}
expected output:
{
"elements": [
{
"type": "element",
"name": "test-child",
"elements": [
{
"type": "comment",
"comment": ""
}
]
}
]
}
Is there an option to do this?
Also on empty cdata
<![CDATA[]]>
returns {}