Lines Matching refs:node
56 * Since various libraries as well as users often create "incorrect" DOM node,
76 * Current DOM node being traversed.
81 * Starting node of the subtree being traversed.
86 * Named mapping for attributes and NS decls for the current node.
91 * If the reader points at {@link #CHARACTERS the text node},
228 public DOMStreamReader(Node node) {
229 setCurrentNode(node);
232 public void setCurrentNode(Node node) {
236 _start = _current = node;
238 // verifyDOMIntegrity(node);
239 // displayDOM(node, System.out);
246 * Called when the current node is {@link Element} to look at attribute list
284 * Makes sure that the namespace URI/prefix used in the given node is available,
521 // then ancestors above start node
522 Node node = findRootElement();
524 while (node.getNodeType() != DOCUMENT_NODE) {
526 NamedNodeMap namedNodeMap = node.getAttributes();
530 node = node.getParentNode();
550 // then ancestors above start node
551 Node node = findRootElement();
553 while (node.getNodeType() != DOCUMENT_NODE) {
555 NamedNodeMap namedNodeMap = node.getAttributes();
562 node = node.getParentNode();
568 * Finds the root element node of the traversal.
573 Node node = _start;
574 while ((type = node.getNodeType()) != DOCUMENT_NODE
576 node = node.getParentNode();
578 return node;
731 throw new RuntimeException("DOMStreamReader: Unexpected node type");
740 // if we are currently at text node, make sure that this is a meaningful text node.
859 private static void displayDOM(Node node, java.io.OutputStream ostream) {
863 new DOMSource(node), new StreamResult(ostream));
871 private static void verifyDOMIntegrity(Node node) {
872 switch (node.getNodeType()) {
877 if (node.getLocalName() == null) {
878 System.out.println("WARNING: DOM level 1 node found");
879 System.out.println(" -> node.getNodeName() = " + node.getNodeName());
880 System.out.println(" -> node.getNamespaceURI() = " + node.getNamespaceURI());
881 System.out.println(" -> node.getLocalName() = " + node.getLocalName());
882 System.out.println(" -> node.getPrefix() = " + node.getPrefix());
885 if (node.getNodeType() == ATTRIBUTE_NODE) return;
887 NamedNodeMap attrs = node.getAttributes();
892 NodeList children = node.getChildNodes();