Load CDATA sections as text content nodes.
authorScott Cantor <cantor.2@osu.edu>
Wed, 1 Aug 2007 01:57:08 +0000 (01:57 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 1 Aug 2007 01:57:08 +0000 (01:57 +0000)
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);
         }