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