* @param xpath needs to point to an attribute of a single node.
* @return value of an attribute of a single node.
*/
public String attributeValue(String xpath) {
try {
DefaultAttribute at = (DefaultAttribute)doc.selectObject(xpath);
return at.getText();
}
catch(ClassCastException e){
throw new IllegalArgumentException("Found result is not an attribute, ensure that you have the right expression which evaluates to attribute.");
}
catch (Exception e) {