Java XML Node Value getNodeValue(Node node)

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

Description

get Node Value

License

Open Source License

Declaration

public static Node getNodeValue(Node node) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    public static String VALUE = "rng:value";

    public static Node getNodeValue(Node node) {

        for (int i = 0; i < node.getChildNodes().getLength(); i++) {
            Node n = node.getChildNodes().item(i);
            if (n.getNodeName().equals(VALUE)) {
                return n;
            }/*from   w w w .  j  a  v a 2s.  c  om*/
        }

        return null;
    }
}

Related

  1. getNodeValue(Node node)
  2. getNodeValue(Node node)
  3. getNodeValue(Node node)
  4. getNodeValue(Node node)
  5. getNodeValue(Node node)
  6. getNodeValue(Node node)
  7. getNodeValue(Node node)
  8. getNodeValue(Node node)
  9. getNodeValue(Node node)