- else if (childNode->getNodeType() == DOMNode::TEXT_NODE && !XMLString::isAllWhiteSpace(childNode->getNodeValue())) {
- XT_log.debug("processing element content");
- processElementContent(childNode->getNodeValue());
+ else if (childNode->getNodeType() == DOMNode::TEXT_NODE) {
+ XT_log.debug("processing text content at position (%d)", position);
+ setTextContent(childNode->getNodeValue(), position);