nodecomparedocumentposition27 IBM Using compareDocumentPosition to check if the EntityReference node contains and precedes it's last childElement, and that this childElement is contained and follows the EntityReference node. Jenny Hsu 2003-02-20