parsing a large xml string in java using XMLReader

Happycakes1

New Member
I have the following bit of code which parses an XML string returned from from a database:\[quote\] \[quote\] XMLReader xReader = XMLReaderFactory.createXMLReader(); xReader.setContentHandler(parser); xReader.parse(new InputSource(new StringReader(theResponseStringFromTheDatabase))); \[/quote\] \[/quote\]whenever the theResponseStringFromTheDatabase is too large, the parsing fails. Is there a way to modify the code so it will parse large strings?best wishes,ck
 
Back
Top