I'm using the xerces2.0.0 DOMParser to parse XML files.
I'm building a DOM tree, but I want the parser not to retrieve comments or text nodes.
Here's my code:
DOMParser parser = new DOMParser();
try {
parser.parse(xmlFile);
document = parser.getDocument();
}
What I'm trying to do is: when the parsing is finished, I scan the tree and do node.removeChild(child) when child is a Text or Comment node. But it still remains some.


Is there a way to do that properly during the parsing? a feature to set?

many thx
anthony


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



Reply via email to