public interface NodeCallbackHandler
XPathOperations
implementations for processing Node
objects on a per-node basis.
Implementations of this interface perform the actual work of processing nodes, but don't need to worry about
exception handling.
Consider using a NodeMapper
instead if you need to map exactly result object per node, assembling them in a
List.
XPathOperations.evaluate(String,javax.xml.transform.Source,NodeCallbackHandler)
Modifier and Type | Method and Description |
---|---|
void |
processNode(Node node)
Processed a single node.
|
void processNode(Node node) throws DOMException
node
- the node to mapDOMException
- in case of DOM errors