NodeProxy p; for (Iterator iter = temp.iterator(); iter.hasNext();) { p = (NodeProxy) iter.next(); if (context.nodeHasParent(p.doc, p.gid, true)) result.add(p); } return result;
return temp.getDescendants(context, NodeSet.DESCENDANT);
	protected NodeList findElementsByTagName(NodeImpl root, String tagName) {		DocumentSet docs = new DocumentSet();		docs.add(this);		NodeSet context = new ArraySet(1);		NodeSet result = new ArraySet(100);		context.add(root);		NodeSet temp = (NodeSet) broker.findElementsByTagName(docs, tagName);		NodeProxy p;		for (Iterator iter = temp.iterator(); iter.hasNext();) {			p = (NodeProxy) iter.next();			if (context.nodeHasParent(p.doc, p.gid, true))				result.add(p);		}		return result;	}