Code example for Text

Methods: getData

0
	 * @param text 
	 * @return 
	 */ 
	public static String getTextContent(Text text, boolean normalize) {
		if (normalize) {
			return StringUtils.normalizeSpace(text.getData());
		} 
		return text.getData();
	} 
 
	/** 
	 * Returns the first child element retrieved by tag name from the parent 
	 * node and null otherwise. 
	 *  
	 * @param parentNode 
	 *            parent node. 
	 * @param elementName 
	 *            element name to found. 
	 * @return the first child element 
	 */ 
	public static Element getFirstChildElementByTagName(Node parentNode,