Home
last modified time | relevance | path

Searched refs:doc (Results 126 – 150 of 312) sorted by relevance

12345678910>>...13

/php-src/ext/simplexml/tests/
H A D020.phpt8 $doc = simplexml_load_string('<root><name attr="foo">bar</name></root>');
9 print $doc->name["attr"];
11 if ($doc->name["attr"] == "foo") {
/php-src/ext/dom/tests/
H A Dbug49490.phpt7 $doc = new DOMDocument();
8 $doc->loadXML('<prefix:root xmlns:prefix="urn:a" />');
10 $xp = new DOMXPath($doc);
H A Dbug73907.phpt11 $doc = new DOMDocument();
12 $doc->loadXML($xmlString);
13 $attr = $doc->documentElement;
H A Dbug44648.phpt8 $doc = new DOMDocument();
9 $doc->loadXML('<root/>');
11 $root = $doc->documentElement;
38 echo $doc->saveXML($root);
H A Dbug55700.phpt7 $doc = new DOMDocument();
8 $doc->loadXML('<prefix:root xmlns:prefix="urn:a" />');
10 $xp = new DOMXPath($doc, true);
15 $xp = new DOMXPath($doc, false);
H A DDOMDocument_relaxNGValidate_basic.phpt16 $doc = new DOMDocument();
17 $doc->loadXML($xml);
18 $result = $doc->relaxNGValidate($rng);
H A Dbug61858.phpt7 $doc = new DOMDocument();
8 $doc->loadXML('<example a="b">Test</example>');
10 $example = $doc->getElementsByTagName('example')->item(0);
H A DDOMDocumentType_systemId_basic_001.phpt13 $doc = new DOMDocument();
14 $doc->loadXML($xml);
15 $doctype = $doc->doctype;
H A Dbug38850.phpt12 $doc = new DOMDocument();
13 $doc->loadXML($xml);
15 $root = $doc->documentElement;
H A DDOMDocument_schemaValidateSource_error3.phpt11 $doc = new DOMDocument;
13 $doc->load(__DIR__."/book.xml");
16 $doc->schemaValidateSource('');
H A Dbug43364.phpt33 $doc = new DomDocument();
34 $doc->loadXml($xml);
35 $doc->xinclude();
37 $count = loopElements(array($doc->documentElement));
H A DDOMDocument_schemaValidate_error3.phpt11 $doc = new DOMDocument;
13 $doc->load(__DIR__."/book.xml");
16 $doc->schemaValidate('');
H A DDOMDocumentType_publicId_basic_001.phpt13 $doc = new DOMDocument();
14 $doc->loadXML($xml);
15 $doctype = $doc->doctype;
H A Delement_child_and_parent_node_without_document.phpt15 $doc = new DOMDocument();
16 $doc->adoptNode($element);
17 echo $doc->saveXML($element), "\n";
H A DDOMProcessingInstruction.phpt43 $doc = new DOMDocument;
44 $doc->appendChild($doc->createElement('root'));
45 $doc->documentElement->appendChild($doc->adoptNode($pi));
46 echo $doc->saveXML();
H A Dbug69679.phpt7 $doc = new DOMDocument();
9 $doc->loadHTML($html);
10 print($doc->saveHTML());
H A DDOMDocument_loadHTML_basic.phpt10 $doc = new DOMDocument();
11 $doc->loadHTML("<html><body><p>Test<br></p></body></html>");
12 echo $doc->saveHTML();
H A Dbug38949.phpt8 $doc = new DOMDocument();
9 $doc->load(__DIR__."/nsdoc.xml");
11 $root = $doc->documentElement;
/php-src/ext/dom/tests/gh11830/
H A Dhierarchy_variation.phpt8 $doc = new DOMDocument;
9 $doc->loadXML(<<<XML
17 $container = $doc->documentElement;
27 echo $doc->saveXML();
H A Ddocument_variation.phpt16 $doc = new DOMDocument;
17 $doc->loadXML(<<<XML
25 $testElement = $doc->documentElement->firstElementChild->nextElementSibling->firstElementChild;
28 $doc->documentElement->firstElementChild->$method($testElement, $otherElement);
34 echo $doc->saveXML();
/php-src/ext/dom/tests/modern/spec/
H A DappendChild_dtd_legacy.phpt11 <!DOCTYPE doc [
14 <doc/>
26 $other->appendChild($other->implementation->createDocumentType('doc', '', ''));
37 <!DOCTYPE doc [
H A DNode_normalize.phpt22 $doc = DOM\XMLDocument::createEmpty();
24 $root = $doc->createElement('book');
25 $doc->appendChild($root);
27 $title = $doc->createElement('title');
30 $author = $doc->createElement('author');
33 $text = $doc->createTextNode('This is the first title');
40 $text = $doc->createTextNode('This is the second title');
/php-src/ext/dom/
H A Ddomimplementation.c172 if (doctype->doc != NULL) { in PHP_METHOD()
217 doctype->doc = docp; in PHP_METHOD()
228 doctype->doc = NULL; in PHP_METHOD()
316 doctype->doc = document; in PHP_METHOD()
356 xmlDocPtr doc = php_dom_create_html_doc(); in PHP_METHOD() local
357 if (UNEXPECTED(doc == NULL)) { in PHP_METHOD()
361 doc->encoding = xmlStrdup(BAD_CAST "UTF-8"); in PHP_METHOD()
367 xmlDtdPtr dtd = xmlCreateIntSubset(doc, BAD_CAST "html", NULL, NULL); in PHP_METHOD()
374 xmlAddChild((xmlNodePtr) doc, html_element); in PHP_METHOD()
398 xmlFreeDoc(doc); in PHP_METHOD()
[all …]
/php-src/ext/spl/tests/
H A Dbug54971.phpt16 $doc = new DOMDocument();
17 $doc->loadXML($source);
19 $xpath = new DOMXPath($doc);
/php-src/ext/dom/tests/modern/html/encoding/
H A DHTMLDocument_override_encoding_incompatible_charset.phpt8 $doc = DOM\HTMLDocument::createFromString(
28 var_dump(iconv('UTF-8', 'ISO-8859-1', $doc->getElementsByTagName('title')->item(0)->textContent));
29 var_dump(iconv('UTF-8', 'ISO-8859-1', $doc->getElementsByTagName('body')->item(0)->textContent));

Completed in 33 milliseconds

12345678910>>...13