Any need to call SAXParser.reset before resusing?
1 posts in topic
Flat View  Flat View

Posted By:   j_wishnie
Posted On:   Wednesday, December 18, 2002 11:00 AM

I'm using JAXP+Xerces to do SAXParsing.

Do I have to call SAXParser.reset on a parser instance before reusing it to parse a second document?



Re: Any need to call SAXParser.reset before resusing?

Posted By:   Anonymous  
Posted On:   Thursday, December 19, 2002 12:11 PM

Hi Jeff,

You don't need to call the reset() method before reusing the parser. And besides, if you look at the javax.xml.parsers.SAXParser interface, there is no reset() method.

The reset() method is actually called itself by the parse(XMLInputSource inputSource) method. I don't know why they have left this method with a public access where it should have been protected...

About | Sitemap | Contact