code: public String getAttributeValue(String name) {
          Attr att = node.getAttributeNode(name);
          if (att == null) return null;
          return att.getNodeValue();
      }
docs: Returns the value of an attribute or null if such an attribute is not defined on the
  underlying element.