Re: [xml] xml implementation

On Tue, Jun 11, 2002 at 06:59:10PM +0200, Francois Chenais wrote:

      Why doesn't libxml used hashtable instead of tree ?
      It should be more efficient to search datas ?

  because XML data maps natually to trees. And mapping it to hash
tables would be very unnatural, what would you use for the hash ? 
How would you navigate in hash tables (because most use of XML
requires tree navigation semantic) ?

  No really I don't see the point. But nothing forbid you to
make you own representation on top of SAX and experiment with it,
just think about implementing XSLT on top of your hash based


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]