Lines Matching refs:node

53    * Check node to see if it was created by a DOM implementation
58 * @param node The node to be tested.
60 * @throws TransformerException if the node is not one which this
62 * the node is compatable.
65 public void checkNode(Node node) throws TransformerException
68 // if(!(node instanceof com.sun.org.apache.xerces.internal.dom.NodeImpl))
69 // throw new TransformerException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_XERCES_CANNOT_HANDLE_NODES, new Object[]{((Object)node).getClass()})); //"DOM2Helper can not handle nodes of type"
70 //+((Object)node).getClass());
94 * @param doc The DOM Document node for this document.
105 * @return The DOM Document node for this document.
156 parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", true);
161 parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false);
202 * @param doc The document to search within, as a DOM Document node.
203 * @return DOM Element node with an attribute of type ID whose value
234 // Assume first that the nodes are DTM nodes, since discovering node
246 // isNodeAfter will return true if node is after countedNode
253 * Get the XPath-model parent of a node. This version takes advantage
258 * @param node Node to be examined
260 * @return the DOM parent of the input node, if there is one, or the
261 * ownerElement if the input node is an Attr, or null if the node is
264 public static Node getParentOfNode(Node node)
266 Node parent=node.getParentNode();
267 if(parent==null && (Node.ATTRIBUTE_NODE == node.getNodeType()) )
268 parent=((Attr) node).getOwnerElement();
273 * Returns the local name of the given node, as defined by the
276 * parsing the node name.
280 * @return String containing the local name, or null if the node
292 * Returns the Namespace Name (Namespace URI) for the given node.
293 * In a Level 2 DOM, you can ask the node itself. Note, however, that
303 * @return String containing the Namespace URI bound to this DOM node