Package io.codemodder
Interface XPathStreamProcessor
public interface XPathStreamProcessor
Performs configurable actions on nodes that match XPath expressions.
-
Method Summary
Modifier and TypeMethodDescriptionprocess
(Path path, String xpathExpression, XPathStreamEventHandler handler) Scan the given XML file for nodes that match the given XPath expression and hand them off to the given handler.
-
Method Details
-
process
Optional<XPathStreamProcessChange> process(Path path, String xpathExpression, XPathStreamEventHandler handler) throws SAXException, IOException, XMLStreamException Scan the given XML file for nodes that match the given XPath expression and hand them off to the given handler.- Returns:
- an
XPathStreamProcessChange
if the file was changed, otherwise empty - Throws:
SAXException
IOException
XMLStreamException
-