Android XML Element Child Get findNextSiblingElement(Element current)

Here you can find the source of findNextSiblingElement(Element current)

Description

find Next Sibling Element

Declaration

public static Element findNextSiblingElement(Element current) 

Method Source Code

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

public class Main {
    public static Element findNextSiblingElement(Element current) {
        org.w3c.dom.Node ret = current.getNextSibling();
        while (ret != null) {
            if (ret instanceof Element) {
                return (Element) ret;
            }//from w  ww  .java  2s.c  o m
            ret = ret.getNextSibling();
        }
        return null;
    }
}

Related

  1. getCDataNode(Element element)
  2. locateElements(Element root, String tagName, String keyAttributeName, String keyAttributeValue)
  3. locateElement(Element root, String tagName, String keyAttributeName, String keyAttributeValue)
  4. valueOfFirstDescendantWithName(Element element, String name)
  5. firstDescendantWithName(Element element, String name)
  6. GetElement(Element root, String namespaceUri, String name, boolean throwIfNotFound)
  7. getListContent(Element listElement, String listItemName, String listItemNamespace)
  8. getStringFromXml(Element validate, Boolean hasHeader)