nodecomparedocumentposition19 IBM The method compareDocumentPosition compares a node with this node with regard to their position in the document and according to the document order. Using compareDocumentPosition check if the document position of the first CDATASection node of the second element whose localName is name compared with the second CDATASection node is PRECEDING and is FOLLOWING vice versa. Jenny Hsu 2003-02-20