List of utility methods to do XML Node Value Get
long | getXmlLong(Node node, String xmlLocalName, long defaultValue) Retrieves the value of that XML element as a long. String s = getXmlString(node, xmlLocalName); try { return Long.parseLong(s); } catch (NumberFormatException e) { return defaultValue; |
String | getXmlString(Node node, String xmlLocalName) Retrieves the value of that XML element as a string. Node child = getFirstChild(node, xmlLocalName); return child == null ? "" : child.getTextContent(); |
String | valueOf(Node x) value Of if (x != null) { NodeList nodes = x.getChildNodes(); String result = ""; for (int i = 0; i < nodes.getLength(); i++) { Node m = nodes.item(i); result += m.getNodeValue(); return result; ... |