lindory-project/node-xml-mapping — pull request #2 by zacronos (2012-12-18 14:06:30+00:00)
Title: Optional error throwing

The changes allow an optional options object to be passed in to calls to dump() or load(). The only supported option currently is load(xml, {throwErrors: true}) -- this will result in the following behavior changes:
* non-string input will cause a thrown exception
* parser errors will be thrown instead of caught
* a non-empty stack at the end of parsing will throw an error

Also included in this pull request are tests for those behaviors are present and a minor revision number bump to indicate the new feature.