/PHP-7.4/ext/dom/tests/ |
H A D | bug67474.phpt | 9 $doc = new DOMDocument(); 10 $doc->loadXML('<root xmlns:x="x"><a/><x:a/></root>'); 11 $list = $doc->getElementsByTagNameNS('', 'a'); 13 $list = $doc->getElementsByTagNameNS(null, 'a');
|
H A D | bug66783.phpt | 9 $doc = new DomDocument; 10 $doc->loadXML('<root></root>'); 11 $e = $doc->createElement('e'); 13 $e->appendChild($doc);
|
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_schemaValidate_addAttrs.phpt | 10 $doc = new DOMDocument; 12 $doc->load(__DIR__."/book-attr.xml"); 14 $doc->schemaValidate(__DIR__."/book.xsd", LIBXML_SCHEMA_CREATE); 16 foreach ($doc->getElementsByTagName('book') as $book) {
|
H A D | DOMDocument_schemaValidate_missingAttrs.phpt | 10 $doc = new DOMDocument; 12 $doc->load(__DIR__."/book-attr.xml"); 14 $doc->schemaValidate(__DIR__."/book.xsd"); 16 foreach ($doc->getElementsByTagName('book') as $book) {
|
H A D | DOMDocument_schemaValidateSource_addAttrs.phpt | 10 $doc = new DOMDocument; 12 $doc->load(__DIR__."/book-attr.xml"); 16 $doc->schemaValidateSource($xsd, LIBXML_SCHEMA_CREATE); 18 foreach ($doc->getElementsByTagName('book') as $book) {
|
H A D | DOMDocument_schemaValidateSource_missingAttrs.phpt | 10 $doc = new DOMDocument; 12 $doc->load(__DIR__."/book-attr.xml"); 16 $doc->schemaValidateSource($xsd); 18 foreach ($doc->getElementsByTagName('book') as $book) {
|
H A D | bug49463.phpt | 8 $doc = new DOMDocument('1.0', 'utf-8'); 9 $root = $doc->createElementNS('http://purl.org/rss/1.0/','rdf:RDF'); 10 $doc->appendChild($root); 13 echo $doc->saveXML()."\n";
|
H A D | DOMDocument_strictErrorChecking_variation.phpt | 13 $doc = new DOMDocument; 14 $doc->load(__DIR__."/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);
|
H A D | toString_exceptions.phpt | 16 $doc = new DOMDocument(); 17 $doc->loadXML( 20 try { $doc->encoding = $badStr; } catch (Exception $e) { echo "Exception\n"; } 21 try { $doc->version = $badStr; } catch (Exception $e) { echo "Exception\n"; } 22 try { $doc->documentURI = $badStr; } catch (Exception $e) { echo "Exception\n"; } 23 $root = $doc->childNodes[0]; 43 echo $doc->saveXML();
|
H A D | domdocumentload_test_method_savexml.inc | 4 $doc = new DOMDocument(); 8 $result = $doc->load(dirname(__FILE__) . getenv('XML_FILE'), $libxml_options); 13 echo $doc->saveXML();
|
H A D | domdocumentloadxml_test_method_savexml.inc | 4 $doc = new DOMDocument(); 7 $result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')), 13 echo $doc->saveXML();
|
H A D | DOMNode_hasChildNodes_basic.phpt | 19 $doc = new DOMDocument(); 21 $root = $doc->createElement('book'); 22 $doc->appendChild($root); 24 $title = $doc->createElement('title'); 27 $text = $doc->createTextNode('This is the title');
|
H A D | DOMNode_getLineNo_basic.phpt | 10 $doc = new DOMDocument(); 11 $doc->load($file); 12 $nodes = $doc->getElementsByTagName('title');
|
H A D | bug41374.phpt | 12 $doc = new DOMDocument(); 13 $doc->loadXML($xml); 15 $root = $doc->documentElement; 20 $bar = $root->insertBefore($doc->createTextNode("bar"), $foo->nextSibling);
|
H A D | DOMDocument_implementationRead_basic.phpt | 11 $doc = new DOMDocument; 12 $doc->load(__DIR__."/book.xml"); 14 var_dump($doc->implementation);
|
H A D | DOMDocument_schemaValidate_basic.phpt | 11 $doc = new DOMDocument; 13 $doc->load(__DIR__."/book.xml"); 15 $result = $doc->schemaValidate(__DIR__."/book.xsd");
|
H A D | DOMDocument_schemaValidateSource_basic.phpt | 11 $doc = new DOMDocument; 13 $doc->load(__DIR__."/book.xml"); 17 $result = $doc->schemaValidateSource($xsd);
|
H A D | DOMNode_getNodePath_basic.phpt | 10 $doc = new DOMDocument(); 11 $doc->load($file); 12 $nodes = $doc->getElementsByTagName('title');
|
H A D | canonicalization.phpt | 22 $doc = $dom->documentElement->firstChild; 24 /* inclusive/without comments first child element of doc element is context. */ 25 echo $doc->C14N()."\n\n"; 28 echo $doc->c14N(TRUE)."\n\n"; 30 /* inclusive/with comments first child element of doc element is context. */ 31 echo $doc->C14N(FALSE, TRUE)."\n\n"; 33 /* exclusive/with comments first child element of doc element is context. */ 34 echo $doc->C14N(TRUE, TRUE)."\n\n"; 39 /* exclusive/without comments first child element of doc element is context. 42 echo $doc->c14N(TRUE, FALSE, [all …]
|
H A D | DOMDocumentType_basic_001.phpt | 14 $doc = new DOMDocument(); 15 $doc->loadXML($xml); 16 $doctype = $doc->doctype; 32 $doc = new DOMDocument(); 33 $doc->loadXML($xml); 34 $doctype = $doc->doctype;
|
/PHP-7.4/ext/libxml/tests/ |
H A D | libxml_disable_entity_loader_2.phpt | 21 $doc = new DOMDocument(); 22 $doc->resolveExternals = true; 23 $doc->substituteEntities = true; 24 $doc->validateOnParse = false; 25 $doc->loadXML($xml, 0); 26 return $doc->saveXML();
|
H A D | bug61367-read.phpt | 18 $doc = new DOMDocument; 19 $doc->resolveExternals = true; 20 $doc->substituteEntities = true; 23 $doc->loadXML( <<<XML 24 <!DOCTYPE doc [ 27 <doc>&file;</doc> 30 print $doc->documentElement->firstChild->nodeValue;
|
H A D | libxml_disable_entity_loader.phpt | 22 $doc = new DOMDocument(); 23 $doc->resolveExternals = true; 24 $doc->substituteEntities = true; 25 $doc->validateOnParse = false; 26 $doc->loadXML($xml, 0); 27 return $doc->saveXML();
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionMethod_getDocComment_property_list.phpt | 10 * doc 1 16 /** doc 2 */ 36 * doc 1 41 string(12) "/** doc 2 */"
|