1 var getChildren = exports.getChildren = function(elem){
5 var getParent = exports.getParent = function(elem){
9 exports.getSiblings = function(elem){
10 var parent = getParent(elem);
11 return parent ? getChildren(parent) : [elem];
14 exports.getAttributeValue = function(elem, name){
15 return elem.attribs && elem.attribs[name];
18 exports.hasAttrib = function(elem, name){
19 return !!elem.attribs && hasOwnProperty.call(elem.attribs, name);
22 exports.getName = function(elem){