Lines Matching refs:nodes
10 $nodes = $xml->a->b;
12 function test($nodes, $name, $callable) {
14 foreach ($nodes as $nodeData) {
16 $callable($nodes);
20 test($nodes, "asXml", fn ($n) => $n->asXml());
21 test($nodes, "attributes", fn ($n) => $n->attributes());
22 test($nodes, "children", fn ($n) => $n->children());
23 test($nodes, "getNamespaces", fn ($n) => $n->getNamespaces());
24 test($nodes, "xpath", fn ($n) => $n->xpath("/root/a/b"));
25 test($nodes, "var_dump", fn ($n) => var_dump($n));
26 test($nodes, "manipulation combined with querying", function ($n) {