Parse XML according to the "Spark" convention (http://wiki.open311.org/JSON_and_XML_Conversion#The_Spark_Convention).
JavaScript
Switch branches/tags
Nothing to show
Latest commit 9c3e643 May 15, 2017 @Mr0grog Mr0grog committed on GitHub Update Mocha to 3.4.1
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml Of course it appears libxmljs uses some flags that clang doesn't supp… May 25, 2016
LICENSE Bump version to 0.1.4 and update copyright dates. May 25, 2016
README.md
package.json Mocha 3.4.0 was published broken. Update to 3.4.1 May 14, 2017
sparkxml.js Bump version to 0.1.4 and update copyright dates. May 25, 2016
test.js

README.md

Node-SparkXML

Node-SparkXML is a a simple Node.js-based XML parser. It parses according to the "Spark" convention, which is a slight modification of the "Parker" convention.

The Spark convention is a slight modification of the Parker convention. It treats nested child elements as demarcating the beginning of an array if there is only one kind of child (a repeating element)… Parker almost does this, but if there is only one child in the container, it doesn't think it should be an array. The Spark convention ensures that child is always an array even if there's only one of them.

More info can be found at: http://wiki.open311.org/JSON_and_XML_Conversion#The_Spark_Convention http://wiki.open311.org/Parker_vs_Spark

This library was mainly developed for tools around Open311, which uses the Spark convention, but it could be useful in plenty of other cases.

Copyright

Copyright (c) 2012-2016 Code for America. See LICENSE for details.

Thanks to Oiva Eskola https://github.com/oiva and Milo van der Linden https://github.com/milovanderlinden for additional contributions.