Here you can find the source of getChildAttributNode(Node node)
public static List<Node> getChildAttributNode(Node node)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; import org.w3c.dom.Node; public class Main { public static String ATTRIBUT = "rng:attribute"; public static List<Node> getChildAttributNode(Node node) { List<Node> nodes = new ArrayList<Node>(); for (int i = 0; i < node.getChildNodes().getLength(); i++) { Node n = node.getChildNodes().item(i); if (n.getNodeName().equals(ATTRIBUT)) { nodes.add(n);/*from ww w .jav a2 s. c om*/ } } return nodes; } }