Android XML Node Search findNextElement(Node ret, String name)

Here you can find the source of findNextElement(Node ret, String name)

Description

find Next Element

Declaration

public static Element findNextElement(Node ret, String name) 

Method Source Code

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

public class Main {
    public static Element findNextElement(Node ret, String name) {
        ret = ret.getNextSibling();//w  w  w.  ja va 2 s. c  om
        while (ret != null
                && (!(ret instanceof Element) || !ret.getNodeName().equals(
                        name))) {
            ret = ret.getNextSibling();
        }
        return (Element) ret;
    }
}

Related

  1. findNamedElementNode(Node doc, String name)
  2. findNamedElementNodes(Node doc, String name)
  3. getOptionalXmlString(Node node, String xmlLocalName)
  4. returnNodeValue(Node node)
  5. selectNode(Node sibling, String uri, String nodeName, int number)
  6. selectNodeText(Node sibling, String uri, String nodeName, int number)