Closed leachiM2k closed 6 years ago
Hey, I've got an issue with xml-flow. Maybe it's caused by node v8's changed array/object behaviour.
My input XML is:
<?xml version="1.0" encoding="utf-8"?> <root> <test> <line>testline</line> <chars> <item>1</item> <item>2</item> </chars> </test> </root>
results in:
{ "$name": "test", "line": "testline", "chars": { "0": "1", "1": "2" } }
As you see, the resulting "chars" array is an object instead of an array.
What I expect is:
{ "$name": "test", "line": "testline", "chars": [ "1", "2" ] }
I've already found a solution in helper.js -> shallowClone and could provide it to you.
Cheers Michael
Thanks for the fix!
Hey, I've got an issue with xml-flow. Maybe it's caused by node v8's changed array/object behaviour.
My input XML is:
results in:
As you see, the resulting "chars" array is an object instead of an array.
What I expect is:
I've already found a solution in helper.js -> shallowClone and could provide it to you.
Cheers Michael