dombie

simple dom for xml/html

domebie

Sometimes you don't want anything fancy.

var dombie = require('dombie');
 
dombie('<html><body onclick=foo></body></html>', function(errdom) {
    // dom 
    [
        {
            tag: 'html',
            children: [
                {
                    tag: body,
                    attributes: {
                        onclick: 'foo'
                    }
                },
                ...
            ]
        }
    ]
});