Jump to content


Photo

XPATH or SAX?

xpath sax

  • Please log in to reply
1 reply to this topic

#1 DLO2418

DLO2418

    Newbie

  • New Members
  • Pip
  • 6 posts

Posted 22 January 2014 - 04:26 AM

I am working on a project where keywords (submitted from a website) will query a large XML document for matching criteria (for shopping products), then retrieve and return all the relevant search results (much like Google Shopping). There may be 100’s of search results returned, with 20 search results per page.

 

Using PHP for the API call, would XPATH or SAX be better with regard to page loading speed and memory efficiency. 



#2 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 14,373 posts
  • LocationCheshire, UK

Posted 23 January 2014 - 07:00 PM

If you want speed and efficiency load the XML data into a database


moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com