Java XML Element Get from Parent getNodeList(Element parent)

Here you can find the source of getNodeList(Element parent)

Description

Get all child nodes of a parent node

License

Apache License

Parameter

Parameter Description
parent a parameter

Declaration

public static NodeList getNodeList(Element parent) 

Method Source Code

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

import org.w3c.dom.Element;

import org.w3c.dom.NodeList;

public class Main {
    /**//from  w w w .  j a  v  a  2 s . c  om
     * Get all child nodes of a parent node
     *
     * @param parent
     * @return
     */
    public static NodeList getNodeList(Element parent) {
        return parent.getChildNodes();
    }
}

Related

  1. getNodeAtPosition(Node parent, int offset)
  2. getNodeBean(Node parent)
  3. getNodeByLocalName(final Node parent, final String name)
  4. getNodeContents(Node parentNode)
  5. getNodeContents(String nodeName, Node parentNode)
  6. getNodes(final Node parent, final String nodeName)