nodecomparedocumentposition28 IBM Using compareDocumentPosition check the document position of the EntityReference node ent4's first child and last child. Invoke compareDocumentPositon on first child with last child as a parameter should return FOLLOWING, and should return PRECEDING vice versa. Jenny Hsu 2003-02-20