changed hasChildNodes and hasAttributes to methods in class Node
Merge pull request #3 from twitwi/master

changed hasChildNodes and hasAttributes to methods in class Node