Here you can find the source of printNodeList(NodeList nodes)
public static void printNodeList(NodeList nodes)
//package com.java2s; //License from project: LGPL import org.w3c.dom.NodeList; public class Main { public static void printNodeList(NodeList nodes) { for (int i = 0; i < nodes.getLength(); i++) { System.out.println(nodes.item(i).getNodeValue()); }/*from ww w. ja v a 2 s . com*/ } }