Lines Matching refs:node
164 * @param contextNode root node of the DOM tree
176 * @param contextNode root node of the DOM tree
321 * This method returns the owner document of a particular node.
326 * @param node
327 * @return the owner document of the node
329 public static Document getOwnerDocument(Node node) {
331 if (node.getNodeType() == Node.DOCUMENT_NODE) {
332 return (Document) node;
335 return node.getOwnerDocument();
355 for (Node node : xpathNodeSet) {
356 int nodeType =node.getNodeType();
358 return (Document) node;
362 return ((Attr)node).getOwnerElement().getOwnerDocument();
364 return node.getOwnerDocument();
476 * @param node
480 private static void circumventBug2650internal(Node node) {
485 switch (node.getNodeType()) {
487 Element element = (Element) node;
520 parent=node;
521 sibling=node.getFirstChild();
532 node=sibling;
533 sibling=node.getNextSibling();
684 * of the context node.
688 * @return true if the node is descendant
762 // no child, this node is done.
764 // close node processing, get sibling
775 // close parent node processing (processed node now)
821 // no child, this node is done.
823 // close node processing, get sibling
834 // close parent node processing (processed node now)