473,503 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xlst or dom to display search result

MD
my database return the search result in the xml.
I have about 100 fields with 10 records if i use
the dom to parse in the browser with javascript
takes about 30 seconds to generate the table
with search result

If i use the xlst to transform this xml document to
table any faster?

if not faster way to display this complicated data with 100 fields?

MD
Sep 6 '06 #1
5 1473
MD wrote:
my database return the search result in the xml.
I have about 100 fields with 10 records if i use
the dom to parse in the browser with javascript
takes about 30 seconds to generate the table
with search result
Please post an example. 100 fields with 10 records
sounds so few that it should be trivial. Such small
files should take around a second to be processed.
Sep 6 '06 #2
MD
The search result is the collection of metadata and
each metadata item has three item like the following.
I hope you gotta idea. my data has chinese included so
i can't just diplay all.
<metadata>
<item>
<id>iims12345222</id>
<type>STRING</type>
<value>HELLO</value>
</item>
<item>
<id>iims12345222</id>
<type>DOUBLE</type>
<value>123.1234</value>
</item>
<item>
<id>iims12345222</id>
<type>INT</type>
<value>123</value>
</item>
Sep 6 '06 #3
MD wrote:
<metadata>
<item>
<id>iims12345222</id>
<type>STRING</type>
<value>HELLO</value>
</item>
<item>
<id>iims12345222</id>
<type>DOUBLE</type>
<value>123.1234</value>
</item>
<item>
<id>iims12345222</id>
<type>INT</type>
<value>123</value>
</item>
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. So, it makes sense
to try XSLT.
Sep 6 '06 #4


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/
Sep 7 '06 #5
MD
Thanks both of you for the tips.

I am rechecking my javascript to see if i am doing something wiered
to slow the whole process.

MD.

"Martin Honnen" <ma*******@yahoo.dewrote in message
news:45**********************@newsspool1.arcor-online.net...
>

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/

Sep 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2120
by: Pascal Sartoretti | last post by:
Hello, I am looking for a formal definition of XSLT. Either a DTD or an XML Schema, whatever. Is there such a thing ? There is for instance one for XML Schema itself at...
3
2612
by: Hai Nguyen | last post by:
I would like to know after transforming my datatables which store in dataset into XML form. Now I want to save it into a file and also create a XLST file to read it. How can I do that? Would you...
3
1460
by: Hai Nguyen | last post by:
Sorry I don't have code yet. I'm asking for solutions which can help me solve the problem. This is the first time I have to cope this situation, hence I'm clueless how to start. I would like to ask...
1
1198
by: Adrian | last post by:
Hi No sure if xlst is the correct choice! or if it is how I would use it from within a windows VB application! I had XML data help in an xmlelements object and I want to format the data and...
1
1184
by: ad | last post by:
Hi, How can I use xlst to display a xml file in asp.net?
2
7034
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
3
2870
by: WiseG1rly | last post by:
Hey everyone! I am completley new and I will start off by saying that I am not a programmer - figuring out this search took so long! I am debugging now and would appreciate any help :) ...
1
1955
by: dave_kajinsky | last post by:
Hello all, I would like to do something with xlst, perhaps I can get help from this group? Here it goes: I've got 2 files: an ascii file and a file that identifies tokens in the ascii file. ...
1
1718
by: jasone | last post by:
Hi all, ive got a search function running on a database, the action performed by the form is shown below, within the 'else' statement i would like to show roughly 5 random rows from the sql table...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.