Searched refs:node (Results 26 – 50 of 123) sorted by path
12345
13 foreach($nodes as $node) {14 var_dump($node->getLineNo());
13 foreach($nodes as $node) {14 var_dump($node->getNodePath());
24 echo "Remove node and save\n";43 Remove node and save
2 Test whether a node has child nodes: hasChildNodes()
18 echo "Add new node B\n";21 echo "Add new node A before B\n";29 Add new node B32 Add new node A before B
2 DOMNode::insertBefore() should fail if node belongs to another document
26 // getting a sibling as reference node to insert
6 This test checks the error message is raised when refnode is the parent node26 // getting the parent node as reference node to insert
6 This test checks the error message is raised when the refnode is a brand new node26 // could be a brand new node
26 // creating a new node (descendant) and getting it as the refnode
19 $node = $dom->documentElement;20 if($node->isSameNode($node)) 27 if($nodelist->item(0)->isSameNode($node))
17 * Add another text node to title. Calculate the number of title text nodes (2).39 // add a second text node to title
44 echo "node $index\n";55 echo "node $index\n";62 node 466 node 374 node 278 node 186 node 091 node 099 node 1
2 Replacing a child node14 // Replaces the child node oldChild with newChild in the list of children, and15 // returns the oldChild node.
7 function print_node(DomNode $node) {8 echo "name (value): " . $node->nodeName . " (" . $node->nodeValue . ")\n";11 function print_node_r(DomNode $node) {14 print_node($node);17 if ( $node->parentNode )18 print_node($node->parentNode);23 if ( $node->previousSibling )24 print_node($node->previousSibling);29 if ( $node->nextSibling )30 print_node($node->nextSibling);[all …]
19 $node = $dom->createElement('newfirst');20 $frag->appendChild($node);29 $node = $frag->appendChild(new DOMElement('fourth'));33 $node = $root->insertBefore($frag, $node);39 $root->replaceChild($frag, $node);58 $node = $frag->appendChild(new DOMElement('fourth'));63 $root->insertBefore($frag, $node);
2 Bug #36756 (DOMDocument::removeChild corrupts node)12 $node = $xpath->query('/root')->item(0);13 echo $node->nodeName . "\n";15 echo "nodeType: " . $node->nodeType . "\n";20 $node = $xpath->query('//child')->item(0);21 echo $node->nodeName . "\n";24 echo "nodeType: " . $node->nodeType . "\n";
12 $node = clone $dom1->documentElement;15 $dom2->appendChild($dom2->importNode($node->cloneNode(true), TRUE));
12 $xml = '<node xmlns:pre="http://foo.com/tr/pre" 14 pre:type="bar" type="foo" ><sub /></node>';
10 foreach($nodes as $node) {11 if($node instanceof DOMElement) {13 if($node->childNodes->length > 0) {14 $count += loopElements($node->childNodes);
13 $node = $dom->createTextNode($textascii);14 $dom->appendChild($node);16 print "Text: $node->textContent\n";18 $matched = $node->splitText($start);22 $node = $dom->createTextNode($text);23 $dom->appendChild($node);25 print "Text: $node->textContent\n";27 $matched = $node->splitText($start);
2 Segfault when removing the Doctype node
2 Test 1: Accessing single node29 // The last node should be identical with the last entry in the children array34 // The parent of this last node is the root again
49 foreach ($nots AS $key=>$node) {50 echo "Key $key: ".$node->nodeName." (".$node->systemId.") (".$node->publicId.")\n";58 $node = $nots->getNamedItem('xxx');59 var_dump($node);68 foreach ($ents AS $key=>$node) {72 foreach ($xkeys as $key => $node) {73 echo $node;83 echo $node;87 $node = $ents->item(3);88 var_dump($node);[all …]
23 function print_node($node)25 print "Node Name: " . $node->nodeName;26 print "\nNode Type: " . $node->nodeType;27 if ($node->nodeType != 3) {28 $child_count = $node->childNodes->length;34 print "\nNode Content: " . $node->nodeValue;41 foreach($nodelist as $node)43 print_node($node);
Completed in 23 milliseconds