Jürgen Kahrs wrote:
With 100 of these items, does it really take
30 seconds for the JavaScript DOM to process
the data ? If so, I would blame the _JavaScript_
implementation of the DOM.
I don't know of any JavaScript implementation of the DOM. Usually the
DOM is implemented by e.g. browser applications like Mozilla or IE in
C/C++ or by viewers like the Batik Squiggle viewer in Java. Those
applications then host a script engine and expose that DOM to script.
MD, can't you transform your XML on the server to HTML? Whether you use
DOM there or XSLT is probably not necessarily a question of speed but
XSLT is geared towards transforming XML to HTML so doing it with XSLT
might be easier.
On the client using DOM scripting to parse the XML has much wider
support than scripting XSLT client-side.
As for the time you encounter, that sounds odd, even assuming that much
of that time comes from creating and rendering the HTML table and not
from extracting the data from the XML.
If you need help with that then provide more details.
--
Martin Honnen
http://JavaScript.FAQTs.com/