Element priceElement = . . . ; String name = priceElement.getTagName();
String attributeValue = priceElement.getAttribute("currency")