- From: Philippe Le Hegaret <plh@w3.org>
- Date: Wed, 20 Dec 2000 17:57:31 +0100
- To: "R. Mark Volkmann" <mark.volkmann@home.com>
- CC: Sridhar Gopal Manavarthe <sridhar.gopal@wipro.com>, www-dom@w3.org
"R. Mark Volkmann" wrote: > Here are two Java methods you can add to your code that will do it. > > [...] > if (node instanceof ProcessingInstruction && node instanceof ProcessingInstruction is dangerous here and make expectation on the underlying DOM implementation. Nothing prevents a DOM implementation to implement several DOM interfaces in the same class. Instead, I would suggest using if (node.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE && Philippe
Received on Wednesday, 20 December 2000 11:58:29 UTC