List of utility methods to do XML NodeList to String Convert
String | docToString(NodeList list) doc To String StringBuilder builder = new StringBuilder(); for (int i = 0; i < list.getLength(); i++) { Node item = list.item(i); if (item.getNodeType() == Node.TEXT_NODE) { builder.append(item.getNodeValue()); } else { builder.append("\n<").append(item.getNodeName()); NamedNodeMap attributes = item.getAttributes(); ... |