kawanet / from-xml

fromXML - Pure JavaScript XML Parser
MIT License
36 stars 14 forks source link

Added support for forceArray flag #5

Open Siemienik opened 4 years ago

Siemienik commented 4 years ago

If forceArray equals true then all nodes will be wrap into array.

Really useful for parsing array of items, which sometimes may contain exactly one element.

@kawanet could you review this, merge and publish into npm?

Siemienik commented 4 years ago

@kawanet ?