node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

xmlElement before a textNode is ignored

Open editedredx opened this issue 11 years ago • 1 comments

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

editedredx avatar May 01 '14 06:05 editedredx

Hi @dylang also facing the same, The node is getting ignored before the text node

harshitgupta028 avatar Feb 16 '24 16:02 harshitgupta028