Here you can find the source of getTextContent(Node node)
Parameter | Description |
---|---|
node | which value will be returned |
public static String getTextContent(Node node)
//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; } }