public static Element[] getChildren(Element element, String namespaceUri) { return getChildren(element, namespaceUri, "*");
public static Element[] getChildren(Element element) { List childElements = new ArrayList(); NodeList children = element.getElementsByTagName("*");  for (int i = 0; i < children.getLength(); i++) { if (children.item(i).getParentNode() == element) { childElements.add(children.item(i)); } }  return (Element[]) childElements.toArray(new Element[childElements.size()]);
    public static Element[] getChildren(Element element, String namespaceUri) {        return getChildren(element, namespaceUri, "*");    }