Searched refs:xpath (Results 1 – 25 of 29) sorted by relevance
12
/PHP-8.0/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 | bug75451.phpt | 2 Bug #75451 (Assertion fails while foreach on empty xpath query) 11 $xpath = new DOMXpath($dom); 12 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 | bug69373.phpt | 10 $xpath = new DOMXpath($doc); 11 $all = $xpath->query('//*');
|
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 | DOMNode_C14N_basic.phpt | 41 DOMNode::C14N(): Argument #3 ($xpath) must have a "query" key 42 DOMNode::C14N(): Argument #3 ($xpath) "query" option must be a string, array given
|
H A D | DOMNode_C14NFile_basic.phpt | 49 DOMNode::C14NFile(): Argument #4 ($xpath) must have a "query" key 50 DOMNode::C14NFile(): Argument #4 ($xpath) "query" option must be a string, array given
|
/PHP-8.0/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 | 024.phpt | 19 function test($xpath) 23 echo "===$xpath===\n"; 24 var_dump($sxe->xpath($xpath));
|
H A D | bug48601.phpt | 2 Bug #48601 (xpath() returns FALSE for legitimate query) 10 $nodes = $sxe->xpath("/root/node2/@test");
|
H A D | SimpleXMLElement_xpath.phpt | 2 Testing xpath() with invalid XML 15 var_dump($xml->xpath("BBBB"));
|
H A D | bug41947.phpt | 10 $gchild = $xml->xpath("//grandchild");
|
H A D | SimpleXMLElement_xpath_4.phpt | 2 Testing xpath() with invalid XML
|
H A D | bug63575.phpt | 14 $r = current($o2->xpath('/a'));
|
H A D | bug38354.phpt | 14 foreach ($xml->xpath("//*") as $element) {
|
H A D | bug42259.phpt | 32 $ancestry = $child->xpath('ancestor-or-self::*');
|
H A D | simplexml_uninitialized.phpt | 19 var_dump($sxe->xpath(''));
|
/PHP-8.0/ext/spl/tests/ |
H A D | bug54971.phpt | 21 $xpath = new DOMXPath($doc); 22 $items = $xpath->query('//node');
|
/PHP-8.0/ext/simplexml/ |
H A D | php_simplexml.h | 57 xmlXPathContextPtr xpath; member
|
H A D | simplexml.stub.php | 14 public function xpath(string $expression) {} function in SimpleXMLElement
|
H A D | simplexml_arginfo.h | 102 ZEND_METHOD(SimpleXMLElement, xpath); 133 ZEND_ME(SimpleXMLElement, xpath, arginfo_class_SimpleXMLElement_xpath, ZEND_ACC_PUBLIC)
|
/PHP-8.0/ext/dom/ |
H A D | config.m4 | 23 notation.c xpath.c dom_iterators.c \
|
H A D | config.w32 | 16 notation.c xpath.c dom_iterators.c \
|
Completed in 19 milliseconds
12