Welcome to WebmasterWorld Guest from 54.162.44.105

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

XPATH or SAX for this specific project

XPATH or SAX

     
9:36 am on Jan 22, 2014 (gmt 0)

New User

joined:Jan 22, 2014
posts: 7
votes: 0


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.
5:01 pm on Feb 7, 2014 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12547
votes: 2


Welcome to WebmasterWorld, Dlo2418.

What about SimpleXML?
[php.net...]

You can run an xpath query on the xml data:
[php.net...]
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members