## Uses of Interface
org.w3c.dom.traversal.NodeFilter

- Packages that use NodeFilter
  Package | Description
  --- | ---
  org.w3c.dom.ls |
  org.w3c.dom.traversal |

- - ### Uses of NodeFilter in org.w3c.dom.ls

    Subinterfaces of NodeFilter in org.w3c.dom.ls
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `LSSerializerFilter` `LSSerializerFilter`s provide applications the ability to examine nodes as they are being serialized and decide what nodes should be serialized or not.

  - ### Uses of NodeFilter in org.w3c.dom.traversal

    Methods in org.w3c.dom.traversal that return NodeFilter
    Modifier and Type | Method | Description
    --- | --- | ---
    `NodeFilter` | TreeWalker.`getFilter()` The filter used to screen nodes.
    `NodeFilter` | NodeIterator.`getFilter()` The `NodeFilter` used to screen nodes.

    Methods in org.w3c.dom.traversal with parameters of type NodeFilter
    Modifier and Type | Method | Description
    --- | --- | ---
    `NodeIterator` | DocumentTraversal.`createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)` Create a new `NodeIterator` over the subtree rooted at the specified node.
    `TreeWalker` | DocumentTraversal.`createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)` Create a new `TreeWalker` over the subtree rooted at the specified node.

Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2026, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.