Lines Matching refs:documentElement
11 $target = $doc->documentElement->firstChild;
13 echo "1 ", $doc->saveXML($doc->documentElement).PHP_EOL;
17 $target = $doc->documentElement->lastChild;
19 echo "2 ", $doc->saveXML($doc->documentElement).PHP_EOL;
24 $target = $doc->documentElement->firstChild;
25 $target->before($doc->documentElement->lastChild);
26 echo "3 ", $doc->saveXML($doc->documentElement).PHP_EOL;
30 $target = $doc->documentElement->lastChild;
31 $target->before($doc->documentElement->firstChild);
32 echo "4 ", $doc->saveXML($doc->documentElement).PHP_EOL;
37 $target = $doc->documentElement->firstChild;
38 $target->before($target, $doc->documentElement->lastChild);
39 echo "5 ", $doc->saveXML($doc->documentElement).PHP_EOL;
43 $target = $doc->documentElement->firstChild;
44 $target->before($doc->documentElement->lastChild, $target);
45 echo "6 ", $doc->saveXML($doc->documentElement).PHP_EOL;
50 $target = $doc->documentElement->lastChild;
51 $target->before($target, $doc->documentElement->firstChild);
52 echo "7 ", $doc->saveXML($doc->documentElement).PHP_EOL;
56 $target = $doc->documentElement->lastChild;
57 $target->before($doc->documentElement->firstChild, $target);
58 echo "8 ", $doc->saveXML($doc->documentElement).PHP_EOL;
63 $target = $doc->documentElement->firstChild;
65 echo "9 ", $doc->saveXML($doc->documentElement).PHP_EOL;
69 $target = $doc->documentElement->lastChild;
71 echo "10 ", $doc->saveXML($doc->documentElement).PHP_EOL;
76 $target = $doc->documentElement->firstChild;
78 echo "11 ", $doc->saveXML($doc->documentElement).PHP_EOL;
82 $target = $doc->documentElement->firstChild;
84 echo "12 ", $doc->saveXML($doc->documentElement).PHP_EOL;
88 $target = $doc->documentElement->firstChild;
90 echo "13 ", $doc->saveXML($doc->documentElement).PHP_EOL;
96 $target = $doc->documentElement->lastChild;
98 echo "14 ", $doc->saveXML($doc->documentElement).PHP_EOL;
102 $target = $doc->documentElement->lastChild;
104 echo "15 ", $doc->saveXML($doc->documentElement).PHP_EOL;
108 $target = $doc->documentElement->lastChild;
110 echo "16 ", $doc->saveXML($doc->documentElement).PHP_EOL;
116 $target = $doc->documentElement->firstChild;
117 $target->before('bar', $target, $doc->documentElement->lastChild);
118 echo "17 ", $doc->saveXML($doc->documentElement).PHP_EOL;
123 $target = $doc->documentElement->firstChild;
124 $target->before($target, 'bar', $doc->documentElement->lastChild);
125 echo "18 ", $doc->saveXML($doc->documentElement).PHP_EOL;
130 $target = $doc->documentElement->firstChild;
131 $target->before($target, $doc->documentElement->lastChild, 'bar');
132 echo "19 ", $doc->saveXML($doc->documentElement).PHP_EOL;
139 $target = $doc->documentElement->lastChild;
140 $target->before('bar', $doc->documentElement->firstChild, $target);
141 echo "20 ", $doc->saveXML($doc->documentElement).PHP_EOL;
146 $target = $doc->documentElement->lastChild;
147 $target->before($doc->documentElement->firstChild, 'bar', $target);
148 echo "21 ", $doc->saveXML($doc->documentElement).PHP_EOL;
153 $target = $doc->documentElement->lastChild;
154 $target->before($doc->documentElement->firstChild, $target, 'bar');
155 echo "22 ", $doc->saveXML($doc->documentElement).PHP_EOL;