PyXR

c:\python24\lib \ xml \ dom \ NodeFilter.py



0001 # This is the Python mapping for interface NodeFilter from
0002 # DOM2-Traversal-Range. It contains only constants.
0003 
0004 class NodeFilter:
0005     """
0006     This is the DOM2 NodeFilter interface. It contains only constants.
0007     """
0008     FILTER_ACCEPT = 1
0009     FILTER_REJECT = 2
0010     FILTER_SKIP   = 3
0011 
0012     SHOW_ALL                    = 0xFFFFFFFFL
0013     SHOW_ELEMENT                = 0x00000001
0014     SHOW_ATTRIBUTE              = 0x00000002
0015     SHOW_TEXT                   = 0x00000004
0016     SHOW_CDATA_SECTION          = 0x00000008
0017     SHOW_ENTITY_REFERENCE       = 0x00000010
0018     SHOW_ENTITY                 = 0x00000020
0019     SHOW_PROCESSING_INSTRUCTION = 0x00000040
0020     SHOW_COMMENT                = 0x00000080
0021     SHOW_DOCUMENT               = 0x00000100
0022     SHOW_DOCUMENT_TYPE          = 0x00000200
0023     SHOW_DOCUMENT_FRAGMENT      = 0x00000400
0024     SHOW_NOTATION               = 0x00000800
0025 
0026     def acceptNode(self, node):
0027         raise NotImplementedError
0028 

Generated by PyXR 0.9.4
SourceForge.net Logo