From 09f3fa104b8e832354311c1543df3ff863e8c9a0 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Wed, 1 Aug 2007 01:57:08 +0000 Subject: [PATCH] Load CDATA sections as text content nodes. --- xmltooling/io/AbstractXMLObjectUnmarshaller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp index 75f5e4e..6bc173d 100644 --- a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp +++ b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp @@ -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); } -- 2.1.4