Added support for getting attribute values via XPath.