salsita/node-xml2js — comment on commit b023b382d12d72bf0a678fcd3b9f4e9f28fda928
File:  line 0
By matthewgertner:

I went ahead and modified the validator interface so that there is greater decoupling from the internal details of your converter. I'm pretty happy with the result. For a more complex example of a validator implementation interface using this approach, see https://github.com/salsita/xml2js-schema/tree/24718257.