$ npm install --save xmlobject
var XML = ;// Deserialize from xmlvar ns = ""var defaultns = ""var s = '<a xmlns="'+defaultns+'" xmlns:test="'+ns+'" b="c" d="e"><test:f test:i="j">g<h /></test:f></a>';XML;// Serialize to xmlvar a = "a";a;a;a;a;var f = a;f;f;f;a;
xmlobject is a perfect fit for small parsing scenario where all data could remain in memory but would not be perfectly optimized for parsing mega-octets of xml content where a stream/sax based approach would be better.
Copyright and license
MIT © Aloïs Deniel