Android XML Node Value Get getNodeValue(Node node)

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

Description

get Node Value

Declaration

static String getNodeValue(Node node) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Node;

public class Main {
    static String getNodeValue(Node node) {
        return (node == null || node.getFirstChild() == null || node
                .getFirstChild().getNodeValue() == null) ? null : node
                .getFirstChild().getNodeValue().trim();
    }//from w  ww .j a  v a2s. co  m
}

Related

  1. getDoubleNodeValue(Node node)
  2. getElementValue(Node aElem)
  3. getElementValue(Node elem)
  4. getElementValue(Node elem)
  5. getNextElement(Node el)
  6. getText(Node n)
  7. getText(Node node, String tag)
  8. getText(Node node, String tag)
  9. getText(Node node, String tag)