fixes #438 - getElementAttribute to works with XPath