Java XML NodeList getArray(NodeList nodeList)

Here you can find the source of getArray(NodeList nodeList)

Description

get Array

License

Open Source License

Declaration

public static Node[] getArray(NodeList nodeList) 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class Main {
    public static Node[] getArray(NodeList nodeList) {
        Node nodes[] = new Node[nodeList.getLength()];
        for (int i = 0; i < nodeList.getLength(); i++) {
            nodes[i] = nodeList.item(i);
        }/*  w ww . ja  v  a 2  s.c  o  m*/

        return nodes;
    }
}

Related

  1. findNode(NodeList nodes, String nodeName)
  2. findNode(String id, NodeList orgs)
  3. findNodeByName(NodeList nodeList, String name)
  4. getAllNodes(NodeList nodeList, List nodes)
  5. getArray(NodeList nodeList)
  6. getContent(NodeList nl, String path)
  7. getCurrentListPosition(Node refNode, NodeList list)
  8. getDeepNode(String name[], NodeList nodes)
  9. getDSNameListInScriptText(String scriptText, NodeList tableList)