require(__dirname).test({ xml : "", expect : [ ["attribute", {name:"ATTRIB", value:"attrib"}], ["opentag", {name:"ROOT", attributes:{"ATTRIB":"attrib"}, isSelfClosing: false}] ], opt : { trim : true } });