--- /dev/null
+# This is the Python mapping for interface NodeFilter from\r
+# DOM2-Traversal-Range. It contains only constants.\r
+\r
+class NodeFilter:\r
+ """\r
+ This is the DOM2 NodeFilter interface. It contains only constants.\r
+ """\r
+ FILTER_ACCEPT = 1\r
+ FILTER_REJECT = 2\r
+ FILTER_SKIP = 3\r
+\r
+ SHOW_ALL = 0xFFFFFFFFL\r
+ SHOW_ELEMENT = 0x00000001\r
+ SHOW_ATTRIBUTE = 0x00000002\r
+ SHOW_TEXT = 0x00000004\r
+ SHOW_CDATA_SECTION = 0x00000008\r
+ SHOW_ENTITY_REFERENCE = 0x00000010\r
+ SHOW_ENTITY = 0x00000020\r
+ SHOW_PROCESSING_INSTRUCTION = 0x00000040\r
+ SHOW_COMMENT = 0x00000080\r
+ SHOW_DOCUMENT = 0x00000100\r
+ SHOW_DOCUMENT_TYPE = 0x00000200\r
+ SHOW_DOCUMENT_FRAGMENT = 0x00000400\r
+ SHOW_NOTATION = 0x00000800\r
+\r
+ def acceptNode(self, node):\r
+ raise NotImplementedError\r