Searched refs:xpath (Results 1 – 25 of 44) sorted by relevance
12
/PHP-8.2/ext/dom/tests/ |
H A D | domxpath.phpt | 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))'); 55 $xpath->registerPHPFunctions('non_existent'); 56 $avg = $xpath->evaluate('number(php:function("non_existent", //def:testnode))'); [all …]
|
H A D | gh11347.phpt | 2 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 D | php_function_edge_cases.phpt | 10 $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 D | bug75451.phpt | 2 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 D | bug36756.phpt | 11 $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 D | DOMNode_C14N_references.phpt | 25 $xpath = [ 31 foreach ($xpath['namespaces'] as $k => &$v); 33 foreach ($xpath as $k => &$v); 38 echo $doc->C14N(true, false, $xpath, $prefixes);
|
H A D | gh12616_2.phpt | 20 $xpath = new DOMXPath($doc); 21 $xpath->registerNamespace('test', 'urn:test'); 25 $result = $xpath->query('//container/services/test:service[@id="hello"]');
|
H A D | bug69373.phpt | 10 $xpath = new DOMXpath($doc); 11 $all = $xpath->query('//*');
|
H A D | not_serializable.phpt | 23 $xpath = new DOMXPath($doc); 25 serialize($xpath); 30 $ns = $xpath->query('//namespace::*')->item(0);
|
H A D | bug45251.phpt | 16 $xpath = new DOMXPath($doc); 18 $bbb = $xpath->query('bbb', $doc->documentElement)->item(0);
|
H A D | bug42082.phpt | 8 $xpath = new DOMXPath($doc); 9 $nodes = $xpath->query('*');
|
H A D | xpath_domnamespacenode.phpt | 14 $xpath = new DOMXPath($doc); 15 $nodes = $xpath->query('//namespace::*');
|
H A D | DOMNode_C14N_basic.phpt | 39 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 D | DOMNode_C14NFile_basic.phpt | 47 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 D | xpath_domnamespacenode_advanced.phpt | 15 $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 D | 008.phpt | 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
|
H A D | bug45553.phpt | 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");
|
H A D | bug12170.phpt | 2 Bug GH-12170 (Can't use xpath with comments in SimpleXML) 20 $sxe->xpath('//bar') 23 foreach ($sxe->xpath('//comment()') as $comment) {
|
H A D | bug52751.phpt | 20 $sxe->xpath('//bar') 24 $sxe->xpath('//processing-instruction(\'baz\')') 27 foreach ($sxe->xpath('//processing-instruction()') as $pi) {
|
H A D | 024.phpt | 19 function test($xpath) 23 echo "===$xpath===\n"; 24 var_dump($sxe->xpath($xpath));
|
H A D | gh12169.phpt | 17 var_dump($sxe->xpath("//comment()")[0]->getName()); 18 var_dump((string) $sxe->xpath("//comment()")[0]);
|
H A D | bug48601.phpt | 2 Bug #48601 (xpath() returns FALSE for legitimate query) 10 $nodes = $sxe->xpath("/root/node2/@test");
|
H A D | gh12167.phpt | 17 var_dump($sxe->xpath("//processing-instruction()")[0]->getName()); 18 var_dump((string) $sxe->xpath("//processing-instruction()")[0]);
|
H A D | SimpleXMLElement_xpath.phpt | 2 Testing xpath() with invalid XML 15 var_dump($xml->xpath("BBBB"));
|
/PHP-8.2/ext/spl/tests/ |
H A D | bug54971.phpt | 19 $xpath = new DOMXPath($doc); 20 $items = $xpath->query('//node');
|
Completed in 18 milliseconds
12