Lines Matching refs:dom
4 dom
10 $dom = Dom\XMLDocument::createFromString('<root xmlns="http://www.w3.org/2000/svg"/>');
11 $dom->title = "hello & world";
12 echo $dom->saveXML(), "\n";
14 $dom = Dom\XMLDocument::createFromString('<svg xmlns="http://www.w3.org/2000/svg"/>');
15 $dom->title = "hello & world";
16 echo $dom->saveXML(), "\n";
17 $dom->title = "";
18 echo $dom->saveXML(), "\n";
19 $dom->title = "test";
20 echo $dom->saveXML(), "\n";
22 $dom = Dom\XMLDocument::createFromString('<svg:svg xmlns:svg="http://www.w3.org/2000/svg"/>');
23 $dom->title = "test";
24 echo $dom->saveXML(), "\n";
25 var_dump($dom->documentElement->firstElementChild->prefix, $dom->documentElement->firstElementChild…
27 $dom = Dom\XMLDocument::createFromString('<svg xmlns="http://www.w3.org/2000/svg">first node<div/><…
28 $dom->title = "test";
29 echo $dom->saveXML(), "\n";
30 $dom->documentElement->firstElementChild->remove();
31 $dom->title = "test2";
32 echo $dom->saveXML(), "\n";
36 $dom = Dom\XMLDocument::createFromString('<root xmlns="http://www.w3.org/1999/xhtml"/>');
37 $dom->title = "test";
38 echo $dom->saveXML(), "\n";
40 $dom = Dom\XMLDocument::createFromString('<html xmlns="http://www.w3.org/1999/xhtml"/>');
41 $dom->title = "test";
42 echo $dom->saveXML(), "\n";
44 $dom = Dom\XMLDocument::createFromString('<html xmlns="http://www.w3.org/1999/xhtml"><foo/><head/><…
45 $dom->title = "test";
46 echo $dom->saveXML(), "\n";
48 $dom = Dom\XMLDocument::createFromString('<html xmlns="http://www.w3.org/1999/xhtml"><head><?ignore…
49 $dom->title = "test";
50 echo $dom->saveXML(), "\n";
52 $dom = Dom\XMLDocument::createFromString('<html xmlns="http://www.w3.org/1999/xhtml"><head><?ignore…
53 $dom->title = "test";
54 echo $dom->saveXML(), "\n";
58 $dom = Dom\XMLDocument::createEmpty();
59 $dom->title = "";
60 echo $dom->saveXML(), "\n";
62 $dom = Dom\XMLDocument::createFromString('<root/>');
63 $dom->title = "test";
64 echo $dom->saveXML(), "\n";