Home
last modified time | relevance | path

Searched refs:doc (Results 101 – 125 of 312) sorted by relevance

12345678910>>...13

/php-src/ext/libxml/tests/
H A Dbug61367-read.phpt19 $doc = new DOMDocument;
20 $doc->resolveExternals = true;
21 $doc->substituteEntities = true;
24 $doc->loadXML( <<<XML
25 <!DOCTYPE doc [
28 <doc>&file;</doc>
31 print $doc->documentElement->firstChild->nodeValue;
H A Dlibxml_disable_entity_loader.phpt23 $doc = new DOMDocument();
24 $doc->resolveExternals = true;
25 $doc->substituteEntities = true;
26 $doc->validateOnParse = false;
27 $doc->loadXML($xml, 0);
28 return $doc->saveXML();
/php-src/ext/dom/tests/
H A Dbug49463.phpt8 $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 DDOMDocument_schemaValidate_error6.phpt8 $doc = new DOMDocument;
10 $doc->load(__DIR__."/book.xml");
13 $doc->schemaValidate("/path/with/\0/byte");
18 var_dump($doc->schemaValidate(str_repeat(" ", PHP_MAXPATHLEN + 1)));
H A DtoString_exceptions.phpt16 $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 DDOMDocument_strictErrorChecking_variation.phpt13 $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 DDOMNode_hasChildNodes_basic.phpt17 $doc = new DOMDocument();
19 $root = $doc->createElement('book');
20 $doc->appendChild($root);
22 $title = $doc->createElement('title');
25 $text = $doc->createTextNode('This is the title');
H A Dbug41374.phpt12 $doc = new DOMDocument();
13 $doc->loadXML($xml);
15 $root = $doc->documentElement;
20 $bar = $root->insertBefore($doc->createTextNode("bar"), $foo->nextSibling);
H A DDOMNode_getLineNo_basic.phpt8 $doc = new DOMDocument();
9 $doc->load($file);
10 $nodes = $doc->getElementsByTagName('title');
H A Ddomdocumentload_test_method_savexml.inc4 $doc = new DOMDocument();
8 $result = $doc->load(dirname(__FILE__) . getenv('XML_FILE'), $libxml_options);
13 echo $doc->saveXML();
H A Dcanonicalization.phpt22 $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 Ddomdocumentloadxml_test_method_savexml.inc4 $doc = new DOMDocument();
7 $result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
13 echo $doc->saveXML();
H A DDOMDocument_implementationRead_basic.phpt11 $doc = new DOMDocument;
12 $doc->load(__DIR__."/book.xml");
14 var_dump($doc->implementation);
H A DDOMDocument_schemaValidate_basic.phpt11 $doc = new DOMDocument;
13 $doc->load(__DIR__."/book.xml");
15 $result = $doc->schemaValidate(__DIR__."/book.xsd");
H A DDOMDocumentType_basic_001.phpt14 $doc = new DOMDocument();
15 $doc->loadXML($xml);
16 $doctype = $doc->doctype;
32 $doc = new DOMDocument();
33 $doc->loadXML($xml);
34 $doctype = $doc->doctype;
H A DDOMDocument_getElementsByTagName_liveness_simplexml.phpt9 $doc = new DOMDocument;
10 $doc->loadXML( '<root><e i="1"/><e i="2"/><e i="3"/><e i="4"/><e i="5"/><e i="6"/><e i="7"/><e i="8…
11 $list = $doc->getElementsByTagName('e');
14 $s = simplexml_import_dom($doc->documentElement);
H A DDOMNode_getNodePath_basic.phpt8 $doc = new DOMDocument();
9 $doc->load($file);
10 $nodes = $doc->getElementsByTagName('title');
H A DDOMNode_normalize_basic.phpt20 $doc = new DOMDocument();
22 $root = $doc->createElement('book');
23 $doc->appendChild($root);
25 $title = $doc->createElement('title');
28 $author = $doc->createElement('author');
31 $text = $doc->createTextNode('This is the first title');
38 $text = $doc->createTextNode('This is the second title');
H A DDOMDocument_schemaValidateSource_basic.phpt11 $doc = new DOMDocument;
13 $doc->load(__DIR__."/book.xml");
17 $result = $doc->schemaValidateSource($xsd);
H A DDOMDocument_loadHTMLfile_error2.phpt11 $doc = new DOMDocument();
13 $result = $doc->loadHTMLFile("");
18 $doc = new DOMDocument();
20 $result = $doc->loadHTMLFile("text.html\0something");
H A Dbug78221.phpt7 $doc = new DOMDocument();
8 $doc->loadHTML('<p id=x>foo</p>');
9 $p = $doc->getElementById('x');
/php-src/ext/reflection/tests/
H A DReflectionEnumUnitCase_getDocComment.phpt5 // enum cases should support doc comments, like class constants.
8 /** Example doc comment */
20 string(26) "/** Example doc comment */"
22 string(26) "/** Example doc comment */"
H A DReflectionMethod_getDocComment_property_list.phpt10 * doc 1
16 /** doc 2 */
36 * doc 1
41 string(12) "/** doc 2 */"
/php-src/build/
H A Dgen_stub.php1898 DOMDocument $doc, argument
1972 $doc,
3479 $doc,
3524 $doc,
3558 $doc,
3577 $doc,
3586 $doc,
3595 $doc,
3618 $doc,
3633 DOMDocument $doc, argument
[all …]
/php-src/ext/simplexml/tests/
H A D021.phpt9 $doc = simplexml_load_string('<root><exists>foo</exists></root>');
10 if(!isset($doc->exists)) {
13 if(isset($doc->doesnotexist)) {

Completed in 38 milliseconds

12345678910>>...13