UNPKG

sax

Version:

An evented streaming XML parser in JavaScript

16 lines (14 loc) 343 B
require(__dirname).test ( { xml : "<xmlns/>" , expect : [ [ "opentag", { name: "xmlns", uri: "", prefix: "", local: "xmlns", attributes: {}, ns: {}, isSelfClosing: true} ], ["closetag", "xmlns"] ] , strict : true , opt : { xmlns: true } } );