Lines Matching refs:doc
7 $doc = new DOMDocument;
8 $doc->appendChild($doc->createElement('container'));
9 $child = $doc->documentElement->appendChild($doc->createElementNS('some:ns', 'child'));
10 $child_attr1 = $child->appendChild($doc->createAttributeNS('some:ns2', 'hello'));
12 $child_attr2 = $child->appendChild($doc->createAttribute('hello2'));
14 $attr3 = $child->appendChild($doc->createElementNS('some:ns', 'childcontainer'))
15 ->appendChild($doc->createAttributeNS('some:ns', 'hello'));
17 echo $doc->saveXML();
20 echo $doc->saveXML();
31 $doc->documentElement->remove();
37 echo $doc->saveXML($attr3), "\n";
38 echo $doc->saveXML($attr3->parentNode), "\n";