Lines Matching refs:dom
4 dom
9 $dom = new DOMDocument();
10 $dom->appendChild($dom->createElement("html"));
11 $a = $dom->createAttributeNS("fake_ns", "test:test");
12 $dom->removeChild($dom->documentElement);
14 echo $dom->saveXML();
26 $dom = new DOMDocument();
27 $dom->appendChild($dom->createElement("html"));
28 $a = $dom->createAttributeNS("fake_ns", "test:test");
30 $foo = $dom->appendChild($dom->createElement('foo'));
31 $foo->appendChild($dom->documentElement);
36 Test2Variation::REMOVE_DOCUMENT => $dom->documentElement->remove(),
37 Test2Variation::REMOVE_CHILD => $dom->documentElement->firstElementChild->remove(),
40 echo $dom->saveXML();
47 $dom = new DOMDocument();
48 $dom->appendChild($dom->createElement('html'));
49 $foobar = $dom->documentElement->appendChild($dom->createElementNS('some:ns', 'foo:bar'));
50 $foobar2 = $foobar->appendChild($dom->createElementNS('some:ns', 'foo:bar2'));
53 $dom->documentElement->appendChild($foobar2);
55 echo $dom->saveXML();