Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.84k stars 598 forks source link

Exclude redundant entries when preserveChildrenOrder=true #599

Open fiso opened 3 years ago

fiso commented 3 years ago

When preserveChildrenOrder is enabled, nodes in the returned object will contain duplicate information. Explicit quote from current version docs:

The named (and potentially unordered) properties are also retained in this configuration at the same level as the ordered "children" array.

Can this be optional? I'm handling huge objects and I would rather not have them contain redundant information.