added NotAttributeNodeTest

This commit is contained in:
jez_higgins 2006-01-05 16:24:11 +00:00
parent f07e022936
commit 93ebae8f14

View file

@ -130,6 +130,16 @@ public:
} // operator()
}; // AttributeNodeTest
template<class string_type>
class NotAttributeNodeTest : public NodeTest<string_type>
{
public:
virtual bool operator()(const DOM::Node<string_type>& node) const
{
return node.getNodeType() != DOM::Node<string_type>::ATTRIBUTE_NODE;
} // operator()
}; // NotAttributeNodeTest
template<class string_type, class string_adaptor>
class ProcessingInstructionNodeTest : public NodeTest<string_type>
{