Too long xpath with DOMXpath query/evaluate return nothing
问题 I am using PHP to retrieve content for a given URL and XPATH. I use DOMDocument / DOMXPath (with query or evaluate). For small xpath, I obtain correct result, but for longer xpath, it does not work. (And this xpath seems to be good (I obtained them with Xpather (firefox plugin) and re-test them with YQL). Do you have any advice on this curious trouble ? Example of code: $doc = new DOMDocument(); $myXMLString = file_get_contents('http://stackoverflow.com/questions/4097230/too-long-xpath-with