Searched refs:xpath (Results 1 – 24 of 24) sorted by relevance
26 $xpath = new DOMXPath($dom);28 $xpath->registerPHPFunctions('MyAverage');29 $xpath->registerNamespace("php", "http://php.net/xpath");31 $xpath->registerNamespace("def", "urn::default");32 $nodelist = $xpath->query("//def:child");37 $count = $xpath->evaluate("count(//def:child)");41 $xpathdoc = $xpath->document;51 $avg = $xpath->evaluate('number(php:function("MyAverage", //def:testnode))');
2 Bug #75451 (Assertion fails while foreach on empty xpath query)11 $xpath = new DOMXpath($dom);12 foreach($xpath->query('/root/noexist') as $child) {
11 $xpath = new DOMXpath($dom);12 $node = $xpath->query('/root')->item(0);19 $xpath = new DOMXpath($dom);20 $node = $xpath->query('//child')->item(0);
10 $xpath = new DOMXpath($doc);11 $all = $xpath->query('//*');
16 $xpath = new DOMXPath($doc);18 $bbb = $xpath->query('bbb', $doc->documentElement)->item(0);
41 $xpath = ($doc != FALSE) ? new DomXpath($doc) : FALSE;42 if($xpath != FALSE)45 $nodes = $xpath->query($path);73 $xpath = ($doc != FALSE) ? new DomXpath($doc) : FALSE;74 if($xpath != FALSE)77 $nodes = $xpath->query($path);203 $xpath = ($doc != FALSE) ? new DomXpath($doc) : FALSE;204 if($xpath != FALSE)207 $nodes = $xpath->query($path);
8 $xpath = new DOMXPath($doc);9 $nodes = $xpath->query('*');
36 /* exclusive/without comments using xpath query. */40 using xpath query with registered namespace.
27 var_dump($sxe->xpath("elem1/elem2/elem3/elem4"));29 var_dump($sxe->xpath("***"));31 var_dump($sxe->xpath("**"));45 Warning: SimpleXMLElement::xpath(): Invalid expression in %s on line %d%A
17 $atts = $x->xpath("/xml/data/@a:label");19 $atts = $x->xpath("/xml/a:data");21 $atts = $x->xpath("/xml/a:data/@a:label");23 $atts = $x->xpath("/xml/a:data/@label");25 $atts = $x->xpath("/xml/data/@label");
2 Testing xpath() with invalid XML10 var_dump($xml->xpath("BBBB"));17 Fatal error: Uncaught Error: Call to a member function xpath() on null in %s:%d
19 function test($xpath)23 echo "===$xpath===\n";24 var_dump($sxe->xpath($xpath));
2 Bug #48601 (xpath() returns FALSE for legitimate query)10 $nodes = $sxe->xpath("/root/node2/@test");
2 Testing xpath() with invalid XML14 var_dump($xml->xpath("BBBB"));
10 $gchild = $xml->xpath("//grandchild");
2 Testing xpath() with invalid XML
14 foreach ($xml->xpath("//*") as $element) {
32 $ancestry = $child->xpath('ancestor-or-self::*');
21 $xpath = new DOMXPath($doc);22 $items = $xpath->query('//node');
59 xmlXPathContextPtr xpath; member
1298 SXE_METHOD(xpath) in SXE_METHOD() argument1321 if (!sxe->xpath) { in SXE_METHOD()1333 sxe->xpath->node = nodeptr; in SXE_METHOD()1342 sxe->xpath->namespaces = ns; in SXE_METHOD()1343 sxe->xpath->nsNr = nsnbr; in SXE_METHOD()1345 retval = xmlXPathEval((xmlChar *)query, sxe->xpath); in SXE_METHOD()1348 sxe->xpath->namespaces = NULL; in SXE_METHOD()1349 sxe->xpath->nsNr = 0; in SXE_METHOD()1401 if (!sxe->xpath) { in SXE_METHOD()2102 if (sxe->xpath) { in sxe_object_free_storage()[all …]
23 notation.c xpath.c dom_iterators.c \
16 notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
113 ZEND_ARG_ARRAY_INFO(0, xpath, 1)121 ZEND_ARG_ARRAY_INFO(0, xpath, 1)
Completed in 37 milliseconds