Java XML Node Next getNextTypedNode(Node node, short nodeType)

Here you can find the source of getNextTypedNode(Node node, short nodeType)

Description

get Next Typed Node

License

Open Source License

Declaration

private static Node getNextTypedNode(Node node, short nodeType) 

Method Source Code

//package com.java2s;

import org.w3c.dom.*;

public class Main {
    private static Node getNextTypedNode(Node node, short nodeType) {
        node = node.getNextSibling();//from  w w w.j  ava  2  s .co  m

        while (node != null && node.getNodeType() != nodeType) {
            node = node.getNextSibling();
        }

        return node;
    }

    private static short getNodeType(Node node) {
        return (node != null ? node.getNodeType() : -1);
    }
}

Related

  1. getNextElement(Node node)
  2. getNextElementNode(Node node)
  3. getNextElementNode(Node node)
  4. getNextNode(Node current)
  5. getNextNodeByName(Node currentNode, String tagName)
  6. getNextTypedNode(Node node, short nodeType)
  7. getNextTypedNode(Node node, short nodeType)