OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: SAX drivers bug ... or feature !

[ Lists Home | Date Index | Thread Index ]
  • From: <david@megginson.com>
  • To: "XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Sat, 21 Nov 1998 14:07:09 -0500 (EST)

Toivo Lainevool writes:

 > If your worried about the performance of the parser, just setting
 > the attributeList to null would be faster than doing the
 > AttributeListImpl::clear() which would cause a removeAllElement()
 > on each of the underlying member vectors.  If your cranking away
 > with the parser, chances are the low priority gc task wouldn't be
 > fired while your doing this, unless you hit your memory limit.

You're confusing AttributeListImpl with AttributeList -- AttributeList
is an interface, not a class.  While AttributeListImpl is available
for those who want it (such as a client program that needs to copy a
few attribute lists), most SAX drivers provide a more efficient
implementation, which is often an adapter of the parser's own, native

All the best,


David Megginson                 david@megginson.com

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS