parser « XML « Spring Q&A

1. Should I use Spring to configure my XML parser?

I have the following boilerplate code in my application. It's likely to be repeated in several different objects involving with parsing objects of different kinds:

SAXParserFactory factory = SAXParserFactory.newInstance();

SAXParser parser = factory.newSAXParser();
AssetTOSaxHandler ...

2. Streamresult to XML parser help needed

Hello everyone, im making a small app what could get me the price of stocks on the net. So im using Code: webServiceTemplate.sendSourceAndReceiveToResult(source, new SoapActionCallback(MESSAGE2), result); The result is a StreamResult. ...