Home
last modified time | relevance | path

Searched refs:xpath (Results 1 – 23 of 23) sorted by relevance

/PHP-5.4/ext/dom/tests/
H A Ddomxpath.phpt26 $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))');
H A Dbug36756.phpt11 $xpath = new DOMXpath($dom);
12 $node = $xpath->query('/root')->item(0);
19 $xpath = new DOMXpath($dom);
20 $node = $xpath->query('//child')->item(0);
H A Dbug45251.phpt16 $xpath = new DOMXPath($doc);
18 $bbb = $xpath->query('bbb', $doc->documentElement)->item(0);
H A Dbug42082.phpt8 $xpath = new DOMXPath($doc);
9 $nodes = $xpath->query('*');
H A Dcanonicalization.phpt36 /* exclusive/without comments using xpath query. */
40 using xpath query with registered namespace.
/PHP-5.4/ext/simplexml/tests/
H A D008.phpt27 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
47 Warning: SimpleXMLElement::xpath(): xmlXPathEval: evaluation failed in %s on line %d
H A Dbug45553.phpt17 $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");
H A DSimpleXMLElement_xpath.phpt2 Testing xpath() with invalid XML
6 var_dump($xml->xpath("BBBB"));
H A D024.phpt19 function test($xpath)
23 echo "===$xpath===\n";
24 var_dump($sxe->xpath($xpath));
H A Dbug48601.phpt2 Bug #48601 (xpath() returns FALSE for legitimate query)
10 $nodes = $sxe->xpath("/root/node2/@test");
H A Dbug41947.phpt10 $gchild = $xml->xpath("//grandchild");
H A Dbug38354.phpt14 foreach ($xml->xpath("//*") as $element) {
H A Dbug42259.phpt32 $ancestry = $child->xpath('ancestor-or-self::*');
/PHP-5.4/ext/spl/tests/
H A Dbug54971.phpt21 $xpath = new DOMXPath($doc);
22 $items = $xpath->query('//node');
/PHP-5.4/ext/simplexml/examples/
H A Dxpath.php4 $xpath_result = $books->xpath("/books/book/title");
/PHP-5.4/ext/simplexml/
H A Dphp_simplexml.h62 xmlXPathContextPtr xpath; member
H A Dsimplexml.c1244 SXE_METHOD(xpath) in SXE_METHOD() argument
1267 if (!sxe->xpath) { in SXE_METHOD()
1279 sxe->xpath->node = nodeptr; in SXE_METHOD()
1288 sxe->xpath->namespaces = ns; in SXE_METHOD()
1289 sxe->xpath->nsNr = nsnbr; in SXE_METHOD()
1291 retval = xmlXPathEval((xmlChar *)query, sxe->xpath); in SXE_METHOD()
1294 sxe->xpath->namespaces = NULL; in SXE_METHOD()
1295 sxe->xpath->nsNr = 0; in SXE_METHOD()
1346 if (!sxe->xpath) { in SXE_METHOD()
2075 if (sxe->xpath) { in sxe_object_free_storage()
[all …]
/PHP-5.4/ext/dom/
H A Dconfig.w3214 notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
H A Dconfig.m429 notation.c xpath.c dom_iterators.c \
H A Ddom.dsp218 SOURCE=.\xpath.c
H A Dnode.c115 ZEND_ARG_ARRAY_INFO(0, xpath, 1)
123 ZEND_ARG_ARRAY_INFO(0, xpath, 1)
/PHP-5.4/win32/
H A Dphp5dllts.dsp615 SOURCE=..\ext\dom\xpath.c
/PHP-5.4/
H A DNEWS3985 - Fixed bug #48601 (xpath() returns FALSE for legitimate query). (Rob)

Completed in 59 milliseconds