I have the following NodeRefList nodeset = getNodeRefList(_context,_expr) ; if ( nodeset.getLength() >= 1 ) return ((XercesDocumentBridge*)(doc))->mapNode(nodeset.item(0)); the node returned is the text node of the node rather than the node. Any idea on why? thanks...charlie