getLogger().warn(stringWriter.toString());
}
if(xpath != null) {
DOMStreamer domStreamer = new DOMStreamer(this.contentHandler,this.lexicalHandler);
contentHandler.startDocument();
NodeList nl = processor.selectNodeList(doc, xpath);
int length = nl.getLength();
for(int i=0;i<length;i++) {
domStreamer.stream(nl.item(i));
}
contentHandler.endDocument();
} else {
DOMStreamer streamer = new DOMStreamer(this.contentHandler,this.lexicalHandler);
streamer.stream(doc);
}
} catch (IOException e){
throw new ResourceNotFoundException("Could not get resource "
+ this.inputSource.getURI(), e);
} catch (SAXException e){