Load CDATA sections as text content nodes.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 1 Aug 2007 01:57:08 +0000 (01:57 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 1 Aug 2007 01:57:08 +0000 (01:57 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@360 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/io/AbstractXMLObjectUnmarshaller.cpp

index 75f5e4e..6bc173d 100644 (file)
@@ -181,7 +181,7 @@ void AbstractXMLObjectUnmarshaller::unmarshallContent(const DOMElement* domEleme
             // Advance the text node position marker.
             ++position;
         }
-        else if (childNode->getNodeType() == DOMNode::TEXT_NODE) {
+        else if (childNode->getNodeType() == DOMNode::TEXT_NODE || childNode->getNodeType() == DOMNode::CDATA_SECTION_NODE) {
             m_log.debug("processing text content at position (%d)", position);
             setTextContent(childNode->getNodeValue(), position);
         }