change xml_has_node to traverse XML tree until it finds a match

using CSS selectors to create a NodeSet, the XML document can be traversed looking for a match. 

fixes #8.

(my apologies for the additional useless commits)