Home
last modified time | relevance | path

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

12

/PHP-8.2/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))');
55 $xpath->registerPHPFunctions('non_existent');
56 $avg = $xpath->evaluate('number(php:function("non_existent", //def:testnode))');
[all …]
H A Dgh11347.phpt2 GH-11347 (Memory leak when calling a static method inside an xpath query)
17 $xpath = new DOMXpath($doc);
18 $xpath->registerNamespace("php", "http://php.net/xpath");
19 $xpath->registerPHPFunctions();
20 $xpath->query("//a[php:function('MyClass::dump', string(@href))]");
H A Dphp_function_edge_cases.phpt10 $xpath = new DOMXpath($doc);
11 $xpath->registerNamespace("php", "http://php.net/xpath");
12 $xpath->registerPHPFunctions();
14 $xpath->query("//a[php:function(3)]");
19 $xpath->query("//a[php:function()]");
H A Dbug75451.phpt2 Bug #75451 (Assertion fails while foreach on empty xpath query)
9 $xpath = new DOMXpath($dom);
10 foreach($xpath->query('/root/noexist') as $child) {
H A Dbug36756.phpt11 $xpath = new DOMXpath($dom);
12 $node = $xpath->query('/root')->item(0);
18 $xpath = new DOMXpath($dom);
19 $node = $xpath->query('//child')->item(0);
H A DDOMNode_C14N_references.phpt25 $xpath = [
31 foreach ($xpath['namespaces'] as $k => &$v);
33 foreach ($xpath as $k => &$v);
38 echo $doc->C14N(true, false, $xpath, $prefixes);
H A Dgh12616_2.phpt20 $xpath = new DOMXPath($doc);
21 $xpath->registerNamespace('test', 'urn:test');
25 $result = $xpath->query('//container/services/test:service[@id="hello"]');
H A Dbug69373.phpt10 $xpath = new DOMXpath($doc);
11 $all = $xpath->query('//*');
H A Dnot_serializable.phpt23 $xpath = new DOMXPath($doc);
25 serialize($xpath);
30 $ns = $xpath->query('//namespace::*')->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 Dxpath_domnamespacenode.phpt14 $xpath = new DOMXPath($doc);
15 $nodes = $xpath->query('//namespace::*');
H A DDOMNode_C14N_basic.phpt39 DOMNode::C14N(): Argument #3 ($xpath) must have a "query" key
40 DOMNode::C14N(): Argument #3 ($xpath) "query" option must be a string, array given
H A DDOMNode_C14NFile_basic.phpt47 DOMNode::C14NFile(): Argument #4 ($xpath) must have a "query" key
48 DOMNode::C14NFile(): Argument #4 ($xpath) "query" option must be a string, array given
H A Dxpath_domnamespacenode_advanced.phpt15 $xpath = new DOMXPath($dom);
20 foreach ($xpath->query($query) as $attribute) {
27 foreach ($xpath->query($query) as $attribute) {
/PHP-8.2/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%A
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 Dbug12170.phpt2 Bug GH-12170 (Can't use xpath with comments in SimpleXML)
20 $sxe->xpath('//bar')
23 foreach ($sxe->xpath('//comment()') as $comment) {
H A Dbug52751.phpt20 $sxe->xpath('//bar')
24 $sxe->xpath('//processing-instruction(\'baz\')')
27 foreach ($sxe->xpath('//processing-instruction()') as $pi) {
H A D024.phpt19 function test($xpath)
23 echo "===$xpath===\n";
24 var_dump($sxe->xpath($xpath));
H A Dgh12169.phpt17 var_dump($sxe->xpath("//comment()")[0]->getName());
18 var_dump((string) $sxe->xpath("//comment()")[0]);
H A Dbug48601.phpt2 Bug #48601 (xpath() returns FALSE for legitimate query)
10 $nodes = $sxe->xpath("/root/node2/@test");
H A Dgh12167.phpt17 var_dump($sxe->xpath("//processing-instruction()")[0]->getName());
18 var_dump((string) $sxe->xpath("//processing-instruction()")[0]);
H A DSimpleXMLElement_xpath.phpt2 Testing xpath() with invalid XML
15 var_dump($xml->xpath("BBBB"));
/PHP-8.2/ext/spl/tests/
H A Dbug54971.phpt19 $xpath = new DOMXPath($doc);
20 $items = $xpath->query('//node');

Completed in 18 milliseconds

12