/PHP-5.3/ext/dom/tests/ |
H A D | DOMDocument_saveHTML_variant1.phpt | 9 $doc = new DOMDocument('1.0'); 10 $root = $doc->createElement('html'); 11 $root = $doc->appendChild($root); 12 $head = $doc->createElement('head'); 14 $title = $doc->createElement('title'); 16 $text = $doc->createTextNode('This is the title'); 18 echo $doc->saveHTML(NULL), "\n"; 19 echo $doc->saveHTML($title), "\n";
|
H A D | bug42082.phpt | 7 $doc = new DOMDocument(); 8 $xpath = new DOMXPath($doc); 15 $doc->loadXML("<element></element>"); 16 var_dump($doc->firstChild->nodeValue, empty($doc->firstChild->nodeValue), isset($doc->firstChild->n… 17 var_dump(empty($doc->nodeType), empty($doc->firstChild->nodeType))
|
H A D | DOMDocument_save_basic.phpt | 9 $doc = new DOMDocument('1.0'); 10 $doc->formatOutput = true; 12 $root = $doc->createElement('book'); 14 $root = $doc->appendChild($root); 16 $title = $doc->createElement('title'); 19 $text = $doc->createTextNode('This is the title'); 24 echo 'Wrote: ' . $doc->save($temp_filename) . ' bytes'; // Wrote: 72 bytes
|
H A D | DOMDocument_saveHTMLFile_error1.phpt | 12 $doc = new DOMDocument('1.0'); 13 $root = $doc->createElement('html'); 14 $root = $doc->appendChild($root); 15 $head = $doc->createElement('head'); 17 $title = $doc->createElement('title'); 19 $text = $doc->createTextNode('This is the title'); 21 $doc->saveHTMLFile();
|
H A D | DOMDocument_saveHTMLFile_formatOutput.phpt | 13 $doc = new DOMDocument('1.0'); 14 $doc->formatOutput = true; 15 $root = $doc->createElement('html'); 16 $root = $doc->appendChild($root); 17 $head = $doc->createElement('head'); 19 $title = $doc->createElement('title'); 21 $text = $doc->createTextNode('This is the title'); 23 $bytes = $doc->saveHTMLFile($filename);
|
H A D | DOMDocument_saveHTMLFile_invalid_filename.phpt | 13 $doc = new DOMDocument('1.0'); 14 $root = $doc->createElement('html'); 15 $root = $doc->appendChild($root); 16 $head = $doc->createElement('head'); 18 $title = $doc->createElement('title'); 20 $text = $doc->createTextNode('This is the title'); 22 $bytes = $doc->saveHTMLFile($filename);
|
H A D | DOMDocument_createProcessingInstruction_basic.phpt | 11 $doc = new DOMDocument; 13 $node = $doc->createElement("para"); 14 $newnode = $doc->appendChild($node); 17 $doc->createProcessingInstruction( "blablabla" ); 21 $doc->createProcessingInstruction( "blablabla", "datadata" ); 24 echo $doc->saveXML();
|
H A D | DOMDocument_saveHTML_basic.phpt | 12 $doc = new DOMDocument('1.0'); 13 $root = $doc->createElement('html'); 14 $root = $doc->appendChild($root); 15 $head = $doc->createElement('head'); 17 $title = $doc->createElement('title'); 19 $text = $doc->createTextNode('This is the title'); 21 echo $doc->saveHTML();
|
H A D | DOMDocument_strictErrorChecking_basic.phpt | 11 $doc = new DOMDocument; 12 $doc->load(dirname(__FILE__)."/book.xml"); 14 var_dump($doc->strictErrorChecking); 16 $doc->strictErrorChecking = false; 17 var_dump($doc->strictErrorChecking);
|
H A D | DOMDocument_saveHTMLFile_basic.phpt | 13 $doc = new DOMDocument('1.0'); 14 $root = $doc->createElement('html'); 15 $root = $doc->appendChild($root); 16 $head = $doc->createElement('head'); 18 $title = $doc->createElement('title'); 20 $text = $doc->createTextNode('This is the title'); 22 $bytes = $doc->saveHTMLFile($filename);
|
H A D | bug41257.phpt | 8 $doc = new DOMDocument(); 9 $doc->load(dirname(__FILE__)."/nsdoc.xml"); 11 $root = $doc->documentElement; 13 $duri = $doc->lookupNamespaceURI("ns2")."\n"; 18 $dpref = $doc->lookupPrefix("http://ns2")."\n"; 23 $disdef = $doc->isDefaultNamespace("http://ns")."\n";
|
H A D | DOMDocument_createAttribute_basic.phpt | 11 $doc = new DOMDocument; 13 $node = $doc->createElement("para"); 14 $newnode = $doc->appendChild($node); 17 $test_attribute = $doc->createAttribute("hahaha"); 20 echo $doc->saveXML();
|
H A D | DOMDocument_preserveWhiteSpace_basic.phpt | 11 $doc = new DOMDocument; 12 $doc->load(dirname(__FILE__)."/book.xml"); 14 var_dump($doc->preserveWhiteSpace); 16 $doc->preserveWhiteSpace = false; 17 var_dump($doc->preserveWhiteSpace);
|
H A D | DOMDocument_createAttribute_error1.phpt | 11 $doc = new DOMDocument; 13 $node = $doc->createElement("para"); 14 $newnode = $doc->appendChild($node); 17 $failed_test_attribute = $doc->createAttribute("ha haha"); 20 echo $doc->saveXML();
|
H A D | DOMDocument_createProcessingInstruction_error.phpt | 11 $doc = new DOMDocument; 13 $node = $doc->createElement("para"); 14 $newnode = $doc->appendChild($node); 18 $doc->createProcessingInstruction( "bla bla bla" ); 21 echo $doc->saveXML();
|
H A D | bug45251.phpt | 7 $doc = new DOMDocument; 8 $doc->loadXml(<<<EOF 16 $xpath = new DOMXPath($doc); 18 $bbb = $xpath->query('bbb', $doc->documentElement)->item(0); 20 $ccc = $doc->createElement('ccc');
|
H A D | DOMDocument_preserveWhiteSpace_variations.phpt | 12 $doc = new DOMDocument; 13 $doc->load(dirname(__FILE__)."/book.xml"); 14 echo $doc->saveXML(); 18 $doc = new DOMDocument; 19 $doc->preserveWhiteSpace = false; 20 $doc->load(dirname(__FILE__)."/book.xml"); 21 echo $doc->saveXML();
|
H A D | regsiter_node_class.phpt | 15 $doc = new DOMDocument(); 16 $doc->registerNodeClass('DOMAttr', 'myAttribute'); 17 $doc->registerNodeClass('DOMElement', 'myElement'); 18 $doc->appendChild(new DOMElement('root')); 19 $root = $doc->documentElement; 27 $doc->registerNodeClass('DOMAttr', NULL);
|
H A D | bug37456.phpt | 8 $doc = new DOMDocument(); 9 $doc->resolveExternals = true; 10 $doc->load(dirname(__FILE__)."/dom.xml"); 12 $root = $doc->getElementsByTagName('foo')->item(0);
|
H A D | bug54601.phpt | 16 $doc = new DOMDocument(); 17 $doc->loadXML($xml, LIBXML_NOENT); 18 $n = $doc->doctype; 19 $doc->removeChild($n); 21 print $doc->saveXML();
|
H A D | DOMDocument_strictErrorChecking_variation.phpt | 13 $doc = new DOMDocument; 14 $doc->load(dirname(__FILE__)."/book.xml"); 17 var_dump($doc->strictErrorChecking); 21 $attr = $doc->createAttribute(0); 31 $doc->strictErrorChecking = false; 34 var_dump($doc->strictErrorChecking); 38 $attr = $doc->createAttribute(0);
|
/PHP-5.3/ext/libxml/tests/ |
H A D | bug42112.phpt | 11 function remove_node($doc) { 12 $node = $doc->getElementById( 'id1' ); 17 $doc = new DOMDocument(); 18 $doc->loadXML($xml); 20 remove_node($doc); 22 $node = $doc->getElementById( 'id1' ); 26 $root = $doc->documentElement;
|
H A D | bug61367-read.phpt | 15 $doc = new DOMDocument; 16 $doc->resolveExternals = true; 17 $doc->substituteEntities = true; 20 $doc->loadXML( <<<XML 21 <!DOCTYPE doc [ 24 <doc>&file;</doc> 27 print $doc->documentElement->firstChild->nodeValue;
|
/PHP-5.3/ext/dom/ |
H A D | documentfragment.c | 89 static void php_dom_xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc) /* {{{ */ in php_dom_xmlSetTreeDoc() argument 98 prop->doc = doc; in php_dom_xmlSetTreeDoc() 102 php_dom_xmlSetTreeDoc(cur, doc); in php_dom_xmlSetTreeDoc() 112 php_dom_xmlSetTreeDoc(cur, doc); in php_dom_xmlSetTreeDoc() 116 tree->doc = doc; in php_dom_xmlSetTreeDoc() 143 err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, data, &lst); in PHP_METHOD() 149 php_dom_xmlSetTreeDoc(lst, nodep->doc); in PHP_METHOD()
|
/PHP-5.3/ext/tidy/ |
H A D | tidy.c | 190 TidyDoc doc; member 562 TidyDoc doc; in php_tidy_quick_repair() local 582 doc = tidyCreate(); in php_tidy_quick_repair() 589 tidyRelease(doc); in php_tidy_quick_repair() 596 TIDY_SET_DEFAULT_CONFIG(doc); in php_tidy_quick_repair() 640 tidyRelease(doc); in php_tidy_quick_repair() 1111 TidyDoc doc; in PHP_FUNCTION() local 1117 doc = tidyCreate(); in PHP_FUNCTION() 1124 tidyRelease(doc); in PHP_FUNCTION() 1138 if (tidyParseBuffer(doc, &buf) < 0 || tidyCleanAndRepair(doc) < 0) { in PHP_FUNCTION() [all …]
|