Skip to content

isabella232/node-sparkxml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Packages

No packages published

Languages

  • JavaScript 100.0%