Home
last modified time | relevance | path

Searched refs:document (Results 1 – 25 of 171) sorted by relevance

1234567

/PHP-8.1/ext/dom/tests/
H A Dgh10234.phpt7 $document = new DOMDocument();
13 var_dump($document->saveHTML());
18 var_dump($document->saveHTML());
22 var_dump($document->saveHTML());
26 var_dump($document->saveHTML());
30 var_dump($document->saveHTML());
34 var_dump($document->saveHTML());
38 var_dump($document->saveHTML());
44 var_dump($document->saveHTML());
48 var_dump($document->saveHTML());
[all …]
H A Dbug67440.phpt9 $document = new DOMDocument();
17 return array($document, $fragment);
23 echo $document->saveXML();
32 echo $document->saveXML();
39 echo $document->saveXML();
46 echo $document->saveXML();
70 -- fragment to document element --
77 -- children manually document element --
98 -- fragment to document element --
105 -- children manually document element --
[all …]
H A DDOMCharacterData_data_basic_002.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $cdata = $document->createCDATASection('t');
17 print $document->saveXML()."\n";
20 print $document->saveXML()."\n";
H A DDOMNode_replaceChild_error1.phpt7 $document = new DOMDocument();
8 $real_parent = $document->createElement('real');
9 $parent = $document->createElement('p');
10 $child1 = $document->createElement('child1');
11 $child2 = $document->createElement('child2');
12 $child3 = $document->createElement('child3');
H A DDOMNode_replaceChild_basic.phpt10 $document = new DOMDocument();
11 $document->loadXML('<?xml version="1.0" encoding="utf-8"?>
16 $parent = $document->getElementsByTagName('foo')->item(0);
17 $new_child = $document->createElement('qux');
19 echo "New child replaces old child:\n" . $document->saveXML();
23 $parent = $document->getElementsByTagName('spam')->item(0);
25 echo "Existing child is removed from tree:\n" . $document->saveXML();
28 $new_child = $document->getElementsByTagName('spam')->item(0);
29 $parent = $document->getElementsByTagName('foo')->item(0);
31 echo "Children are inserted in order:\n" . $document->saveXML();
H A DDOMNode_removeChild_error1.phpt7 $document = new DOMDocument();
8 $real_parent = $document->createElement('real');
9 $parent = $document->createElement('p');
10 $child1 = $document->createElement('child1');
11 $child2 = $document->createElement('child2');
H A DDOMDocumentFragment_appendXML_basic_001.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $fragment = $document->createDocumentFragment();
18 print $document->saveXML();
H A DDOMCharacterData_appendData_basic.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $cdata = $document->createElement('cdata');
18 $cdatanode = $document->createCDATASection('');
28 echo "\n" . $document->saveXML();
H A DDOMComment_appendData_basic_Sullivan.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $comment = $document->createElement('comment');
18 $commentnode = $document->createComment('');
28 echo "\n" . $document->saveXML();
H A DDOMText_appendData_basic.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $text = $document->createElement('text');
18 $textnode = $document->createTextNode('');
28 echo "\n" . $document->saveXML();
H A DDOMCharacterData_substringData_basic_001.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $cdata = $document->createCDATASection('testfest');
H A DDOMCharacterData_deleteData_basic_001.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $cdata = $document->createCDATASection('test');
H A DDOMCharacterData_deleteData_error_002.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $cdata = $document->createCDATASection('test');
H A DDOMDocumentFragment_appendXML_error_003.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $fragment = $document->createDocumentFragment();
H A DDOMNode_replaceChild_error2.phpt7 $document = new DOMDocument();
8 $a = $document->createElement('a');
9 $b = $document->createElement('b');
10 $c = $document->createElement('c');
H A DDOMAttr_ownerElement_error_001.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $document->removeChild($root);
H A DDOMNamedNodeMap_count.phpt10 $document = new DomDocument();
11 $root = $document->createElement('root');
12 $document->appendChild($root);
17 $item = $document->createElement('item');
H A DDomNodeList_count.phpt10 $document = new DomDocument();
11 $root = $document->createElement('root');
12 $document->appendChild($root);
17 $item = $document->createElement('item');
H A Dgh11906.phpt20 echo "--- document output ---\n";
25 echo "--- document output ---\n";
32 --- document output ---
39 --- document output ---
H A DDOMDocument_preserveWhiteSpace_variations.phpt11 echo "Load document with preserveWhiteSpace on\n";
17 echo "\nLoad document with preserveWhiteSpace off\n";
25 Load document with preserveWhiteSpace on
38 Load document with preserveWhiteSpace off
H A Dbug47530.phpt73 // Freeing the original document shouldn't break the other document
104 echo "-- Test document fragment with import --\n";
106 echo "-- Test document fragment without import --\n";
108 echo "-- Test document import --\n";
110 echo "-- Test partial document import --\n";
112 echo "-- Test document import with attributes --\n";
119 -- Test document fragment with import --
122 -- Test document fragment without import --
127 -- Test document import --
134 -- Test partial document import --
[all …]
H A DDOMDocument_loadHTMLfile_variation2.phpt2 Test DOMDocument::loadHTMLFile when a not-well formed document is loaded
4 Verifies the behavior if a not-well formed document is loaded
/PHP-8.1/ext/xsl/
H A Dphp_xsl.stub.php14 * @param DOMDocument|SimpleXMLElement $document
17 public function transformToDoc(object $document, ?string $returnClass = null): object|false {} argument
20 * @param DOMDocument|SimpleXMLElement $document
23 public function transformToUri(object $document, string $uri): int {} argument
26 * @param DOMDocument|SimpleXMLElement $document
29 public function transformToXml(object $document): string|null|false {} argument
/PHP-8.1/ext/dom/
H A Dparentnode.c178 newNodeObj->document = document; in dom_zvals_to_fragment()
246 if (document == NULL) { in dom_sanity_check_node_list_for_insertion()
262 php_dom_throw_error(WRONG_DOCUMENT_ERR, dom_get_strict_error(document)); in dom_sanity_check_node_list_for_insertion()
267 php_dom_throw_error(HIERARCHY_REQUEST_ERR, dom_get_strict_error(document)); in dom_sanity_check_node_list_for_insertion()
395 int stricterror = dom_get_strict_error(context->document); in dom_parent_node_after()
416 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_after()
450 int stricterror = dom_get_strict_error(context->document); in dom_parent_node_before()
471 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_before()
530 stricterror = dom_get_strict_error(context->document); in dom_child_node_remove()
558 int stricterror = dom_get_strict_error(context->document); in dom_child_replace_with()
[all …]
H A Ddocument.c278 if (obj->document) { in dom_document_strict_error_checking_read()
290 if (obj->document) { in dom_document_strict_error_checking_write()
305 if (obj->document) { in dom_document_format_output_read()
316 if (obj->document) { in dom_document_format_output_write()
330 if (obj->document) { in dom_document_validate_on_parse_read()
341 if (obj->document) { in dom_document_validate_on_parse_write()
355 if (obj->document) { in dom_document_resolve_externals_read()
366 if (obj->document) { in dom_document_resolve_externals_write()
380 if (obj->document) { in dom_document_preserve_whitespace_read()
391 if (obj->document) { in dom_document_preserve_whitespace_write()
[all …]

Completed in 30 milliseconds

1234567