Multiple(?) / Reuse of Parsers

David Brownell david-b at pacbell.net
Fri May 14 18:52:09 BST 1999


As it says in the SAX spec for the "Parser" interface:

	SAX parsers are reusable but not re-entrant: the
	application may reuse a parser object (possibly
	with a different input source) once the first
	parse has completed successfully, but it may not
	invoke the parse() methods recursively within a parse.

So, reusing the parser must be OK.

Re should you be able to create more than one -- certainly.
Complain to any parser vendor that doesn't let you do that;
there's no reason to prevent that from being done, it's rather
basic functionality.

- Dave

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list