Android XML Element Child Get findFirstChildElement(Element parent)

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

Description

find First Child Element

Declaration

public static Element findFirstChildElement(Element parent) 

Method Source Code

//package com.java2s;
import org.w3c.dom.Element;

public class Main {
    public static Element findFirstChildElement(Element parent) {
        org.w3c.dom.Node ret = parent.getFirstChild();
        while (ret != null && (!(ret instanceof Element))) {
            ret = ret.getNextSibling();//from  www . j a  va 2s  . c o  m
        }
        return (Element) ret;
    }
}

Related

  1. findChild(Element parent, String tagName)
  2. findChildElement(Element parent, String name)
  3. findChildElementWithAttribute(Element parent, String name, String attribute, String value)
  4. findChildren(Element parent, String tagName)
  5. firstChildWithName(Element element, String name)
  6. getChild(Element element, String name)
  7. getChildByType(Element element, short nodeType)
  8. getChildElementByName(Element parent, String name)