Discussion:
reading from XML file is too slow
(too old to reply)
jun.z@arbin.com
2004-10-14 16:27:20 UTC
Permalink
I am trying to read some values from XML file, it takes about 1 or 2
minutes to finish reading, my xml file has about 4000 xml elements.
Does anyone know this is normal or something wrong? How could make it
faster?

Thank you
Catweazle
2004-10-14 21:53:16 UTC
Permalink
how do you access the xml file? using the labview xml tools, or do you
use the ms xml parser?
i recommend use the xml parser using dom model and xpath-querys this
should speed up the access to your xml file
have further questions feel free to ask
Matt F
2004-10-15 19:32:55 UTC
Permalink
Hello Jun.z,


We will need a little more information on how you a reading the file
to know why it is taking so long. One possibility may be in your file
reading routine and not the XML parsing. Things like opening and
closing a file every read can definitely slow down an application.

Please let us know how we can help.

Regards,

Matt F
jun.z@arbin.com
2004-10-18 13:23:00 UTC
Permalink
Thank you. Could you please save the files in Labview 7.0 format? I
can't open 7.1 files.
jun.z@arbin.com
2004-10-19 13:55:51 UTC
Permalink
It is much faster, thanks a lot.
johnsold
2004-10-19 15:46:29 UTC
Permalink
Catweazle,

In your xmlFile_GetElements_(Array).vi the logic gate which controls
the termination of the while loop needs to be AND rather than OR. As
drawn it never stops.

Very nice improvement on the original.

Lynn

Continue reading on narkive:
Loading...