Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.88k stars 602 forks source link

Why does default explicitArray option is true? #545

Closed yeongjet closed 4 years ago

yeongjet commented 4 years ago

I have to set explicitArray to false in options, it makes some inconvenient.

Leonidas-from-XIV commented 4 years ago

Because it breaks code that was written with the assumption that there is only one child element when trying to parse code which has multiple elements. With explicitArray true it will not break if the XML changes.