Lines Matching refs:root
9 $frag->appendChild(new DOMElement('root'));
11 $root = $dom->documentElement;
14 $root->appendChild($frag);
17 $root->appendChild($frag);
21 $root->replaceChild($frag, $root->firstChild);
27 $root->replaceChild($frag, $root->lastChild);
30 $root->insertBefore($frag, NULL);
33 $node = $root->insertBefore($frag, $node);
36 $root->insertBefore($frag, $root->firstChild);
39 $root->replaceChild($frag, $node);
42 $root->replaceChild($frag, $root->lastChild);
45 $root->replaceChild($frag, $root->firstChild->nextSibling);
47 $root->removeChild($root->firstChild);
51 while ($root->hasChildNodes()) {
52 $root->removeChild($root->firstChild);
56 $root->insertBefore($frag, $root->firstChild);
59 $root->appendChild($frag);
63 $root->insertBefore($frag, $node);
68 $root = $dom->documentElement;
69 $root->replaceChild($frag, $root->firstChild);
76 <root><first/><newsecond/><newthird/><newfourth/></root>
79 <root><first/><second/><third/><fourth/></root>
82 <root><second/><third/><fourth/></root>