Reuse of SAXParser

Is it safe to reuse SAXParser instance under Java 1.4? I see that SAXParser.reset() was added only in Java 5...
[139 byte] By [hitrya] at [2007-11-26 16:08:29]
# 1

According to "Easy and Efficient XML Processing" article (http://java.sun.com/developer/technicalArticles/xml/jaxp1-3/):

Is it possible to use the same parser instance to parse multiple XML documents? This was not clear, and the behavior was implementation dependent.

In case Xerces is being used as a parser, it seems to be safe. Xerces parser class org.apache.xerces.parsers.SAXParser implements org.xml.sax.XMLReader, which in turn is safe for reuse (according to javadoc):

Once a parse is complete, an application may reuse the same XMLReader object, possibly with a different input source.

hitrya at 2007-7-8 22:30:51 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...