Java XML Node Text Value getTextContent(Node node)

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

Description

This method return text value of node.

License

Open Source License

Parameter

Parameter Description
node which value will be returned

Return

String value of node given in parameter. Null if node is null

Declaration

public static String getTextContent(Node node) 

Method Source Code

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

import org.w3c.dom.Node;

public class Main {
    /**/*from w  w  w.j  a  v a  2s  .com*/
     * This method return text value of node. Null if node is null.
     * 
     * @param node which value will be returned
     * @return String value of node given in parameter. Null if node is null
     */
    public static String getTextContent(Node node) {
        if (node != null) {
            return node.getTextContent();
        }
        return null;
    }
}

Related

  1. getTextContent(Node baseNode)
  2. getTextContent(Node e)
  3. getTextContent(Node element)
  4. getTextContent(Node node)
  5. getTextContent(Node node)
  6. getTextContent(Node node)
  7. getTextContent(Node node)
  8. getTextContent(Node node)
  9. getTextContent(Node node)