Reader reader = ...
StreamSource source = new StreamSource(reader);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
DefaultHandler handler = new MyDefaultHandlerImpl();
SAXResult result = new SAXResult(handler);
transformer.transform(source, result);