Tom Schindl wrote:
reading in a xml-document containing

<hello>World &amp; Universe</hello>
[...] case Node.TEXT_NODE:
{
System.out.print(node.getNodeValue());
break;
}
[...] <hello>World & Universe</hello>
[...]
How could I turn off resolving of entities??

You are taking the wrong approach. Your code that outputs the text value must check each character and escape ampersands (&) and less-than (<) characters.

--
Andy Clark * [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to