Java XML Node Print printNodeIterator(NodeIterator iterator)

Here you can find the source of printNodeIterator(NodeIterator iterator)

Description

print Node Iterator

License

LGPL

Declaration

public static void printNodeIterator(NodeIterator iterator) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import org.w3c.dom.Node;

import org.w3c.dom.traversal.NodeIterator;

public class Main {
    public static void printNodeIterator(NodeIterator iterator) {
        Node n;//www. ja  v a  2 s. c om
        while ((n = iterator.nextNode()) != null) {
            System.out.println("Node:" + n.getNodeValue());
        }
    }
}

Related

  1. printNode(Node node)
  2. printNode(Node node, int level)
  3. printNode(Node node, PrintStream out)
  4. printNode(Node node, StringWriter sw)
  5. printNodeBasics(Node node)
  6. printNodes(Node node, int level)
  7. printNodeType(Node node, int ident)
  8. printToTerminal(Node n, String indent, boolean descend)
  9. printTree(Node node, int ident)