NodeFilter Interface

Table 2-18 summarizes the methods available through NodeFilter interface.

Table 2-18 Summary of NodeFilter Methods; Dom Package

Function Summary

acceptNode()

Execute it for a given node and use its return value.



acceptNode()

This function is used as a test by NodeIterator and TreeWalker.

Syntax

template< typename Node> AcceptNodeCode AcceptNode(
   NodeRef< Node>& nref);
Parameter Description
nref
reference to the node to be tested.

Returns

(AcceptNodeCode) result returned by the filter function