Updated NodeTest to match CDATA sections as well as text nodes.

This commit is contained in:
jez 2008-08-26 11:53:14 +01:00
parent 5e1868b525
commit bc233d68ca

View file

@ -172,7 +172,7 @@ public:
virtual bool operator()(const DOM::Node<string_type, string_adaptor>& node) const
{
return node.getNodeType() == DOM::Node<string_type, string_adaptor>::TEXT_NODE;
return (node.getNodeType() == DOM::Node<string_type, string_adaptor>::TEXT_NODE) || (node.getNodeType() == DOM::Node<string_type, string_adaptor>::CDATA_SECTION_NODE);
} // test
}; // class TextNodeTest