private void addTextContent(Element parent, TextObject textObj) /*throws XMLStreamException*/ {
		if (textObj == null)
			return;
		
		//Could have multiple text content variants
		for (int i=0; i<textObj.getTextContentVariantCount(); i++) {
			
			TextContent textContent = textObj.getTextContentVariant(i);
			
			if (	(textContent.getText() == null || textContent.getText().isEmpty())
					&& 	(textContent.getPlainText() == null || textContent.getPlainText().isEmpty()))
					continue;
			
			Element textEquiv = doc.createElementNS(getNamespace(), DefaultXmlNames.ELEMENT_TextEquiv);
			parent.appendChild(textEquiv);
			
			//Attributes
			addContentObjectAttributes(textEquiv, textContent.getAttributes());
			
			//OCR Confidence
			//Double confidence = textObj.getConfidence();
			//if (confidence != null) {
			//	DoubleValue dv = new DoubleValue(confidence);
			//	addAttribute(textEquiv, DefaultXmlNames.ATTR_conf, dv.toString()); 
			//}
	
			//Plain text
			if (textContent.getPlainText() != null && !textContent.getPlainText().isEmpty())
				addTextElement(textEquiv, DefaultXmlNames.ELEMENT_PlainText, textContent.getPlainText());
			//Unicode text
			addTextElement(textEquiv, DefaultXmlNames.ELEMENT_Unicode, textContent.getText());
		}
	}