/    Sign up×
Community /Pin to ProfileBookmark

I have an Xpath function to parse an XML OrderList which runs great under PHP5. Unfortunately, my ISP is running PHP4 (discovered after doing the development). I tried converting to the xpath_context() stuff but it seems there are extensions missing or not configured and the documentation is fairly incomplete or sketchy at best.

My preference would be to get the PHP5 DOMXpath extension loaded under PHP4 rather than back-port all the code. Does anyone know if this is possible?

Does anyone have experience going from DOMXpath back to xPath_context() that could point me to some example code? I use the node context features of xPath->query(‘queryString’, $node) as well as the pointers to the attributes, etc. PHP4 doesn’t like things like $nodeList->item(0), etc.

Anyone have any thoughts?

Appreciate the help in advance.

tony

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @tbirnseth spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...