nodecomparedocumentposition34 IBM Create a new Element node, add new Text, Element and Processing Instruction nodes to it. Using compareDocumentPosition, compare the position of the Element with respect to the Text and the Text with respect to the Processing Instruction. Jenny Hsu 2003-02-21