Java tutorial
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { private static Node[] convertToArray(NodeList e) { int nodeSize = e.getLength(); Node[] output = new Node[nodeSize]; Node tempo = null; for (int i = 0; i < nodeSize; i++) { tempo = e.item(i); output[i] = tempo; } return output; } }