Code example for Node

Methods: getTextContentsetTextContent

		if (node == null) {
			node = addNode(doc, xPathExpression);
		final String currentValue = node.getTextContent();
		if (currentValue.isEmpty() || !preventOverwrite) {
			return value;
		return currentValue;
	 * Adds the node chain defined by the {@code xPath}. If the {@link Node} 
	 * at the end of the path exists then it will just return it. 
	 * @param doc 
	 * @param xPathExpression 
Contextual code suggestions in your IDE  Get Codota for Java