Return the string value of a Node
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;
}