Home
last modified time | relevance | path

Searched refs:node (Results 26 – 50 of 123) sorted by path

12345

/PHP-5.5/ext/dom/tests/
H A DDOMNode_getLineNo_basic.phpt13 foreach($nodes as $node) {
14 var_dump($node->getLineNo());
H A DDOMNode_getNodePath_basic.phpt13 foreach($nodes as $node) {
14 var_dump($node->getNodePath());
H A DDOMNode_hasChildNodes.phpt24 echo "Remove node and save\n";
43 Remove node and save
H A DDOMNode_hasChildNodes_basic.phpt2 Test whether a node has child nodes: hasChildNodes()
H A DDOMNode_insertBefore.phpt18 echo "Add new node B\n";
21 echo "Add new node A before B\n";
29 Add new node B
32 Add new node A before B
H A DDOMNode_insertBefore_error1.phpt2 DOMNode::insertBefore() should fail if node belongs to another document
H A DDOMNode_insertBefore_error2.phpt26 // getting a sibling as reference node to insert
H A DDOMNode_insertBefore_error3.phpt6 This test checks the error message is raised when refnode is the parent node
26 // getting the parent node as reference node to insert
H A DDOMNode_insertBefore_error4.phpt6 This test checks the error message is raised when the refnode is a brand new node
26 // could be a brand new node
H A DDOMNode_insertBefore_error5.phpt26 // creating a new node (descendant) and getting it as the refnode
H A DDOMNode_issamenode_basic.phpt19 $node = $dom->documentElement;
20 if($node->isSameNode($node))
27 if($nodelist->item(0)->isSameNode($node))
H A DDOMNode_normalize_basic.phpt17 * Add another text node to title. Calculate the number of title text nodes (2).
39 // add a second text node to title
H A DDOMNode_removeChild_basic.phpt44 echo "node $index\n";
55 echo "node $index\n";
62 node 4
66 node 3
74 node 2
78 node 1
86 node 0
91 node 0
99 node 1
H A DDOMNode_replaceChild_basic.phpt2 Replacing a child node
14 // Replaces the child node oldChild with newChild in the list of children, and
15 // returns the oldChild node.
H A Dbug28721.phpt7 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 …]
H A Dbug32615.phpt19 $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);
H A Dbug36756.phpt2 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";
H A Dbug37277.phpt12 $node = clone $dom1->documentElement;
15 $dom2->appendChild($dom2->importNode($node->cloneNode(true), TRUE));
H A Dbug38474.phpt12 $xml = '<node xmlns:pre="http://foo.com/tr/pre"
14 pre:type="bar" type="foo" ><sub /></node>';
H A Dbug43364.phpt10 foreach($nodes as $node) {
11 if($node instanceof DOMElement) {
13 if($node->childNodes->length > 0) {
14 $count += loopElements($node->childNodes);
H A Dbug46335.phpt13 $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);
H A Dbug54601.phpt2 Segfault when removing the Doctype node
H A Ddom001.phpt2 Test 1: Accessing single node
29 // The last node should be identical with the last entry in the children array
34 // The parent of this last node is the root again
H A Ddom007.phpt49 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 …]
H A Ddom_test.inc23 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

12345