Java XML Node Sibiling getNextSiblingElement(Node node)

Here you can find the source of getNextSiblingElement(Node node)

Description

get Next Sibling Element

License

Apache License

Declaration

public static Element getNextSiblingElement(Node node) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Element;
import org.w3c.dom.Node;

public class Main {

    public static Element getNextSiblingElement(Node node) {
        Node n = node.getNextSibling();
        while (n != null && n.getNodeType() != Node.ELEMENT_NODE) {
            n = n.getNextSibling();//from w w w .j  ava 2s  . c  o m
        }
        return (Element) n;
    }
}

Related

  1. getNextSiblingElement(Node node)
  2. getNextSiblingElement(Node node)
  3. getNextSiblingElement(Node node)
  4. getNextSiblingElement(Node node)
  5. getNextSiblingElement(Node node)
  6. getNextSiblingElement(Node node, String elemNames[])
  7. GetNextSiblingElement(Node start)
  8. getNextSiblingElementByName(Node node, String name)
  9. getNextSiblingElementNS(Node node, String uri)