Added XHTML support by querying XPATH using local names.