Home
last modified time | relevance | path

Searched refs:root (Results 51 – 75 of 274) sorted by path

1234567891011

/PHP-7.4/ext/dom/tests/
H A DDOMNode_insertBefore.phpt12 $dom->loadXML('<root/>');
28 <root/>
31 <root><B/></root>
34 <root><A/><B/></root>
H A DDOMNode_normalize_basic.phpt24 $root = $doc->createElement('book');
25 $doc->appendChild($root);
28 $root->appendChild($title);
31 $root->appendChild($author);
H A DDOMNode_removeChild_basic.phpt38 $root = $dom->documentElement;
40 $children = $root->childNodes;
48 $noderemoved = $root->removeChild($current);
51 $children = $root->childNodes;
H A DDOMNode_replaceChild_basic.phpt12 <root><foo><bar/><baz/></foo><spam><eggs/><eggs/></spam></root>');
36 <root><foo><qux/><baz/></foo><spam><eggs/><eggs/></spam></root>
41 <root><foo><baz/></foo><spam><qux/><eggs/></spam></root>
44 <root><foo><spam><qux/><eggs/></spam></foo></root>
H A DDOMText_appendData_basic.phpt12 $root = $document->createElement('root');
13 $document->appendChild($root);
16 $root->appendChild($text);
38 <root><text>data&gt;&lt;&amp;"</text></root>
H A DDomNodeList_count.phpt11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $root->setAttribute('attribute-' . $i, 'value-' . $i);
18 $root->appendChild($item);
20 var_dump($root->childNodes->length);
21 var_dump($root->childNodes->count());
22 var_dump(count($root->childNodes));
H A Dbug32615.phpt21 $root->replaceChild($frag, $root->firstChild);
27 $root->replaceChild($frag, $root->lastChild);
36 $root->insertBefore($frag, $root->firstChild);
42 $root->replaceChild($frag, $root->lastChild);
47 $root->removeChild($root->firstChild);
52 $root->removeChild($root->firstChild);
56 $root->insertBefore($frag, $root->firstChild);
69 $root->replaceChild($frag, $root->firstChild);
76 <root><first/><newsecond/><newthird/><newfourth/></root>
79 <root><first/><second/><third/><fourth/></root>
[all …]
H A Dbug35342.phpt8 $dom->loadXML("<root><foo>foobar</foo><foo>foobar#2</foo></root>");
H A Dbug36756.phpt10 $dom->loadXML('<root><child/></root>');
12 $node = $xpath->query('/root')->item(0);
18 $dom->loadXML('<root><child/></root>');
28 root
H A Dbug37456.phpt12 $root = $doc->getElementsByTagName('foo')->item(0);
13 $root->setAttribute('bar', '&gt;');
14 $attr = $root->setAttribute('bar', 'newval');
H A Dbug38850.phpt15 $root = $doc->documentElement;
17 print $root->lookupNamespaceURI(NULL);
H A Dbug38949.phpt11 $root = $doc->documentElement;
13 echo $root->getAttribute("xmlns")."\n";
14 echo $root->getAttribute("xmlns:ns2")."\n";
16 $child = $root->firstChild->nextSibling;
H A Dbug41257.phpt11 $root = $doc->documentElement;
14 $euri = $root->lookupNamespaceURI("ns2")."\n";
19 $epref = $root->lookupPrefix("http://ns2")."\n";
24 $eisdef = $root->isDefaultNamespace("http://ns")."\n";
H A Dbug41374.phpt9 <root>foo<child />baz</root>
15 $root = $doc->documentElement;
16 $foo = $root->firstChild;
20 $bar = $root->insertBefore($doc->createTextNode("bar"), $foo->nextSibling);
H A Dbug43364.phpt23 <root xmlns:xi="http://www.w3.org/2001/XInclude">
28 <b><xi:include xpointer="xpointer(/root/a)" /></b>
29 <c><xi:include xpointer="xpointer(/root/b)" /></c>
30 </root>
H A Dbug44648.phpt9 $doc->loadXML('<root/>');
11 $root = $doc->documentElement;
15 $root->setAttributeNode($attr);
21 $root->setAttribute('@def', '456');
27 $root->setAttributeNS(NULL, '@ghi', '789');
33 $root->setAttributeNS('urn::test', 'a:g@hi', '789');
38 echo $doc->saveXML($root);
45 <root/>
H A Dbug47849.phpt9 $aDOM->appendChild($aDOM->createElementNS('urn::root','r:root'));
22 <r:root xmlns:r="urn::root"><data xmlns="urn::data"/></r:root>
H A Dbug49463.phpt9 $root = $doc->createElementNS('http://purl.org/rss/1.0/','rdf:RDF');
10 $doc->appendChild($root);
11 $root->setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://purl.org/rss/1.0/" );
H A Dbug49490.phpt8 $doc->loadXML('<prefix:root xmlns:prefix="urn:a" />');
13 echo($xp->query('//prefix:root', null, false)->length . "\n");
H A Dbug54382.phpt10 <root xmlns="http://ns" xmlns:ns2="http://ns2">
12 </root>';
H A Dbug66502.phpt10 $element = $dom->appendChild(new DOMElement('root'));
H A Dbug66783.phpt10 $doc->loadXML('<root></root>');
H A Dbug67081.phpt44 <!ELEMENT root (foo)+>
H A Dbug67474.phpt10 $doc->loadXML('<root xmlns:x="x"><a/><x:a/></root>');
H A Dbug73907.phpt8 <root>
9 </root>';

Completed in 78 milliseconds

1234567891011