Here you can find the source of getTextContent(Node node)
Parameter | Description |
---|---|
node | a parameter |
public static String getTextContent(Node node)
//package com.java2s; //License from project: Apache License import org.w3c.dom.*; public class Main { /**/* w ww . j av a 2 s . co m*/ * Returns normalized text content for a node. * @param node * @return text content of child node, trimmed */ public static String getTextContent(Node node) { return node.getTextContent().trim(); } }