List of utility methods to do XML Attribute from Element
String | getValueAttribute(final Node aNode) Retrieves the value of the value attribute of the supplied Node. return getNamedAttribute(aNode, VALUE_ATTRIBUTE);
|
String | getValueAttributeUri(Element parent, String defaultBaseUri) get Value Attribute Uri return getSchemaUri(parent, defaultBaseUri) + ".value"; |
String | getValueForAttribute(String attributeName, Node parentNode) get Value For Attribute NamedNodeMap attrs = parentNode.getAttributes(); if (attrs == null) { return null; Node attr = attrs.getNamedItem(attributeName); if (attr != null) { return attr.getNodeValue(); } else { ... |
String | getXMLAttribute(Element element, String attrName) Gets an attribute from an XML element String attr = element.getAttribute(attrName); if (attr == null) return ""; return attr.trim(); |
String | getXMLAttributeValue(Element node, String attributeName) Get the value of an attribute that belongs to an XML element. return node.getAttribute(attributeName);
|
boolean | getXMLAttributeValueAsBoolean(Element node, String attributeName) Get the boolean value of an attribute that belongs to an XML element return Boolean.parseBoolean(getXMLAttributeValue(node, attributeName));
|
void | incrementAttributeValue(Node node, String attName) increment Attribute Value incrementAttributeValue(node, attName, 1); |
boolean | isHTMLInputFileValueAttr(Node node, String attrName) is HTML Input File Value Attr if (!isHTMLInputFile(node)) return false; return attrName.toLowerCase().equals("value"); |