node-xml
node-xml copied to clipboard
xmlElement before a textNode is ignored
When creating an xmlElement right before a textNode on the same level it is ignored.
xml(
{
test:[
{'foo1':''},
{'bar1':''},
'textNode',
{'foo2':''},
{'bar2':''}
]
}
)
Yields the result
<test><foo1></foo1>textNode<foo2></foo2><bar2></bar2></test>
Notice the lack of bar1
Hi @dylang also facing the same, The node is getting ignored before the text node