XML conversion by convention
npm install xmlconv
Powered by libxmljs.
var xmlconv = require'xmlconv';var xml ='<?xml version="1.0" ?>''<note>'' <to>Chris</to>'' <from>Other Chris</from>'' <subject>XML</subject>'' <body>I just wish XML was easier to read, you know?</body>''</note>'join'\n';var obj = xmlconvxml convention: 'parker';console.logJSONstringifyobj null ' ';
Currently Parker is only partly implemented, along with a similar but tighter convention I'm calling "Castle".
Copyright © 2013 Christopher Brown. MIT Licensed.