Code example for Text

Methods: getWholeText

0
				Element domElement = (Element) domNode;
				return prefix + domElement.getNodeName();
			} 
			if (domNode instanceof Text) {
				Text domText = (Text) domNode;
				return prefix + domText.getWholeText();
			} else { 
				OcamlPlugin.logWarning("DOM element type not handled: " 
						+ element.getClass().getSimpleName());
			} 
			// else if (domNode instanceof Element) { 
			// Element domElement = (Element) domNode; 
			// return prefix + domElement.getNodeName(); 
			// } 
		} 
 
		return super.getText(element);
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java