Forums / Developer / Help :\ Custom Module that search a big XML file
H-Works Agency
Sunday 24 September 2006 9:40:13 am
Hi all,
I am making a custom module that use ajax to return results from a big XML file to the module form.
I can read the whole XML documents into an array then filter it using php but this method is very very slow.
Should i use <b>phpXpath</b> or <b>ezxml.php</b> lib to search through my XML file ?
What is the best way to handle this case ?
Thanx for the help in advance,Martin Harispuru
EZP is Great
Xavier Dutoit
Saturday 30 September 2006 2:18:07 am
Hi,
When I had really big files, I found that SAX performed better than DOM.
Have a look at the php functions. http:/www.php.net/domxmlhttp://www.php.net/manual/en/ref.xml.php
The closer to these function, the faster it's going to be, but that's likely to be longer to dev.
Depends of what you want to do in detail, of course.
Good luck.
X+
http://www.sydesy.com