Re: [xml] xml implementation



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

      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
representation.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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