Lines Matching refs:document
9 $document = new DOMDocument();
10 …$document->loadXML('<?xml version="1.0"?><rootElement xmlns:myns="http://example/ns" xmlns:myns2="…
11 $fragment = $document->createDocumentFragment();
12 $fragment->appendChild($document->createTextNode("\n"));
13 $fragment->appendChild($document->createElementNS('http://example/ns', 'myns:childNode', '1'));
14 $fragment->appendChild($document->createTextNode("\n"));
15 $fragment->appendChild($document->createElementNS('http://example/ns', 'myns:childNode', '2'));
16 $fragment->appendChild($document->createTextNode("\n"));
17 return array($document, $fragment);
21 list($document, $fragment) = createDocument();
22 $document->documentElement->{$method}($fragment);
23 echo $document->saveXML();
27 list($document, $fragment) = createDocument();
30 $document->documentElement->{$method}($childNode);
32 echo $document->saveXML();
36 list($document, $fragment) = createDocument();
38 $document->documentElement->{$method}($fragment);
39 echo $document->saveXML();
43 list($document, $fragment) = createDocument();
44 …$fragment->childNodes[1]->appendChild($document->createElementNS('http://example/ns2', 'myns2:chil…
45 $document->documentElement->{$method}($fragment);
46 echo $document->saveXML();
50 echo "-- fragment to document element --\n"; case1('appendChild'); echo "\n";
51 echo "-- children manually document element --\n"; case2('appendChild'); echo "\n";
52 echo "-- fragment to document where first element is not a text node --\n"; case3('appendChild'); e…
56 echo "-- fragment to document element --\n"; case1('insertBefore'); echo "\n";
57 echo "-- children manually document element --\n"; case2('insertBefore'); echo "\n";
58 echo "-- fragment to document where first element is not a text node --\n"; case3('insertBefore'); …
62 echo "-- fragment to document element --\n"; case1('insertBefore'); echo "\n";
63 echo "-- children manually document element --\n"; case2('insertBefore'); echo "\n";
64 echo "-- fragment to document where first element is not a text node --\n"; case3('insertBefore'); …
70 -- fragment to document element --
77 -- children manually document element --
84 -- fragment to document where first element is not a text node --
98 -- fragment to document element --
105 -- children manually document element --
112 -- fragment to document where first element is not a text node --
126 -- fragment to document element --
133 -- children manually document element --
140 -- fragment to document where first element is not a text node --