The list of methods to do XML Attribute Read are organized into topic(s).
String
getNamedAttribute(final Node aNode, final String attributeName) get Named Attribute
if (aNode == null) {
return null;
final NamedNodeMap attributes = aNode.getAttributes();
if (attributes != null) {
final Node nameNode = attributes.getNamedItem(attributeName);
if (nameNode != null) {
return nameNode.getNodeValue().trim();
...
String
getNSPrefixFromNSAttr(Attr a) Fetch the non-null namespace prefix from a Attr that declares a namespace.
assert a != null;
assert isNSAttribute(a);
if (a.getPrefix() == null) {
return "";
return a.getName().substring(a.getPrefix().length() + 1);