From bc233d68ca5f98fa58b381538fb0e89e9eb78256 Mon Sep 17 00:00:00 2001 From: jez Date: Tue, 26 Aug 2008 11:53:14 +0100 Subject: [PATCH] Updated NodeTest to match CDATA sections as well as text nodes. --- include/XPath/impl/xpath_node_test.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/XPath/impl/xpath_node_test.hpp b/include/XPath/impl/xpath_node_test.hpp index 8e887193..773fa02a 100644 --- a/include/XPath/impl/xpath_node_test.hpp +++ b/include/XPath/impl/xpath_node_test.hpp @@ -172,7 +172,7 @@ public: virtual bool operator()(const DOM::Node& node) const { - return node.getNodeType() == DOM::Node::TEXT_NODE; + return (node.getNodeType() == DOM::Node::TEXT_NODE) || (node.getNodeType() == DOM::Node::CDATA_SECTION_NODE); } // test }; // class TextNodeTest