Why getNodeValue() method does not give the string after (&)
843834Jul 13 2001 — edited Jul 13 2001 Please help me! Below is the XML file's content:
<root>
<test>Algebraic& Statistical calculator</test> </root>
When I want to get the value of by following quotes:
String value = "";
NodeList children = node.getChildNodes();
for(int i = 0; i < children.getLength(); i++ ) {
Node ci = children.item(i);
if( ci.getNodeType() == Node.TEXT_NODE ) {
value = value + ci.getNodeValue();
}
}
it gives me only Algebraic(Rest part after & gets truncated)can't I get the entiretext inside it?