/** * Return the string value of a Node * * @param n The Node. * @return The string value of the Node */ protected static String toString(Node n) { if (n instanceof DTMNodeProxy) return ((DTMNodeProxy)n).getStringValue(); else { String value = n.getNodeValue(); if (value == null) { NodeList nodelist = n.getChildNodes(); StringBuffer buf = new StringBuffer(); for (int i = 0; i < nodelist.getLength(); i++) { Node childNode = nodelist.item(i); buf.append(toString(childNode)); } return buf.toString(); } else return value; } }
/** * Return the string value of a Node * * @param n The Node. * @return The string value of the Node */ protected static String toString(Node n) { if (n instanceof DTMNodeProxy) return ((DTMNodeProxy)n).getStringValue(); else { String value = n.getNodeValue(); if (value == null) { NodeList nodelist = n.getChildNodes(); StringBuffer buf = new StringBuffer(); for (int i = 0; i < nodelist.getLength(); i++) { Node childNode = nodelist.item(i); buf.append(toString(childNode)); } return buf.toString(); } else return value; } }
/** * Return the string value of a Node * * @param n The Node. * @return The string value of the Node */ protected static String toString(Node n) { if (n instanceof DTMNodeProxy) return ((DTMNodeProxy)n).getStringValue(); else { String value = n.getNodeValue(); if (value == null) { NodeList nodelist = n.getChildNodes(); StringBuffer buf = new StringBuffer(); for (int i = 0; i < nodelist.getLength(); i++) { Node childNode = nodelist.item(i); buf.append(toString(childNode)); } return buf.toString(); } else return value; } }
/** * Return the string value of a Node * * @param n The Node. * @return The string value of the Node */ protected static String toString(Node n) { if (n instanceof DTMNodeProxy) return ((DTMNodeProxy)n).getStringValue(); else { String value = n.getNodeValue(); if (value == null) { NodeList nodelist = n.getChildNodes(); StringBuffer buf = new StringBuffer(); for (int i = 0; i < nodelist.getLength(); i++) { Node childNode = nodelist.item(i); buf.append(toString(childNode)); } return buf.toString(); } else return value; } }
result.add(((DTMNodeProxy) arguments[i]).getStringValue()); + ((org.apache.xml.dtm.ref.DTMNodeProxy) n).getStringValue()); if (n instanceof DTMNodeProxy) result.add(((DTMNodeProxy) n).getStringValue());
result.add(((DTMNodeProxy) arguments[i]).getStringValue()); + ((org.apache.xml.dtm.ref.DTMNodeProxy) n).getStringValue()); if (n instanceof DTMNodeProxy) result.add(((DTMNodeProxy) n).getStringValue());