/php-src/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'); 16 $elem = $doc->documentElement;
|
H A D | replaceWith_non_viable_next_sibling.phpt | 7 $doc = new DOMDocument; 8 $doc->loadXML(<<<XML 17 $container = $doc->documentElement; 22 echo $doc->saveXML(); 24 echo $doc->saveXML();
|
H A D | DOMDocument_item_cache_invalidation.phpt | 10 $doc = new DOMDocument(); 11 $doc->loadHTML('<p>hello</p><p>world</p>'); 13 $elements = $doc->getElementsByTagName('p'); 15 $doc->loadHTML('<p>A</p><p>B</p><p>C</p>'); 23 $doc = new DOMDocument(); 24 $doc->loadHTML('<p>hello</p><p>world</p><p>!</p>'); 26 $elements = $doc->getElementsByTagName('p'); 37 $doc = new DOMDocument; 38 $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… 39 $root = $doc->documentElement;
|
H A D | gh12616_1.phpt | 8 $doc = new DOMDocument(); 9 $doc->loadXML( 17 $doc->documentElement->removeAttributeNS('http://symfony.com/schema/dic/services', ''); 18 echo $doc->saveXML(); 22 $new->importNode($doc->documentElement, true)
|
H A D | bug80268_2.phpt | 11 $doc = new DOMDocument; 12 $doc->loadHTML("<p>foo\0bar</p>"); 13 $html = $doc->saveHTML(); 17 $doc = new DOMDocument; 18 $doc->loadHTMLFile(__DIR__ . '/80268.html'); 19 $html = $doc->saveHTML();
|
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 | bug66783.phpt | 7 $doc = new DomDocument; 8 $doc->loadXML('<root></root>'); 9 $e = $doc->createElement('e'); 11 $e->appendChild($doc);
|
H A D | bug69373.phpt | 7 $doc = new DOMDocument(); 9 $doc->loadXML("<parent><child /><child /></parent>"); 10 $xpath = new DOMXpath($doc); 12 $doc->firstChild->nodeValue = '';
|
H A D | bug37456.phpt | 8 $doc = new DOMDocument(); 9 $doc->resolveExternals = true; 10 $doc->load(__DIR__."/dom.xml"); 12 $root = $doc->getElementsByTagName('foo')->item(0);
|
H A D | DOMDocument_liveness_caching_invalidation.phpt | 7 $doc = new DOMDocument; 8 $doc->loadXML('<root><e id="1"/><e id="2"/><e id="3"/><e id="4"/><e id="5"/></root>'); 9 $root = $doc->documentElement; 15 foreach ($doc->getElementsByTagName('e') as $node) { 23 foreach ($doc->getElementsByTagName('e') as $node) { 29 foreach ($doc->getElementsByTagName('e') as $node) {
|
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 | gh12616_2.phpt | 8 $doc = new DOMDocument(); 9 $doc->loadXML( 19 $doc->documentElement->removeAttributeNS('http://symfony.com/schema/dic/services', 'symfony'); 20 $xpath = new DOMXPath($doc); 23 echo $doc->saveXML();
|
/php-src/ext/dom/tests/manually_call_constructor/ |
H A D | document.phpt | 8 $doc = new DOMDocument(); 9 $doc->loadXML('<?xml version="1.0"?><foo/>'); 10 $doc->__construct("1.1", "UTF-8"); 11 echo $doc->saveXML();
|
H A D | element.phpt | 13 $doc = new DOMDocument(); 14 $doc->loadXML(<<<XML 18 $doc->documentElement->appendChild($element); 19 echo $doc->saveXML(); 22 $doc->documentElement->appendChild($element); 23 echo $doc->saveXML();
|
/php-src/ext/libxml/tests/ |
H A D | bug61367-read_2.phpt | 20 $doc = new DOMDocument; 21 $doc->resolveExternals = true; 22 $doc->substituteEntities = true; 25 $doc->loadXML( <<<XML 26 <!DOCTYPE doc [ 29 <doc>&file;</doc> 32 print $doc->documentElement->firstChild->nodeValue;
|
H A D | libxml_disable_entity_loader_2.phpt | 23 $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/lexbor/lexbor/html/interfaces/ |
H A D | document.c | 45 lxb_html_document_t *doc; member 125 lxb_dom_document_t *doc; in lxb_html_document_interface_create() local 137 if (doc == NULL) { in lxb_html_document_interface_create() 168 lxb_dom_document_t *doc; in lxb_html_document_interface_destroy() local 176 if (doc->node.owner_document == doc) { in lxb_html_document_interface_destroy() 648 context.doc = doc; in lxb_html_document_style_remove_by_rule_cb() 718 lxb_dom_document_t *doc; in lxb_html_document_parse() local 864 lxb_dom_document_t *doc; in lxb_html_document_parser_prepare() local 1110 context.doc = doc; 1157 context.doc = doc; [all …]
|
H A D | title_element.c | 35 lxb_dom_document_t *doc = lxb_dom_interface_node(title)->owner_document; in lxb_html_title_element_interface_destroy() local 42 lexbor_str_destroy(text, doc->text, false); in lxb_html_title_element_interface_destroy() 43 lxb_dom_document_destroy_struct(doc, text); in lxb_html_title_element_interface_destroy() 85 lxb_dom_document_t *doc = lxb_dom_interface_node(title)->owner_document; in lxb_html_title_element_strict_text() local 97 doc->text, (text_len + 1)); in lxb_html_title_element_strict_text() 104 title->strict_text = lxb_dom_document_create_struct(doc, in lxb_html_title_element_strict_text() 110 lexbor_str_init(title->strict_text, doc->text, text_len); in lxb_html_title_element_strict_text() 112 title->strict_text = lxb_dom_document_destroy_struct(doc, in lxb_html_title_element_strict_text()
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | create_element_util.inc | 2 function createElement($doc, $name, ?string $value = null) { 3 $element = $doc->createElement($name); 8 function createElementNS($doc, $ns, $name, ?string $value = null) { 9 $element = $doc->createElementNS($ns, $name);
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | attr.c | 112 lxb_dom_document_t *doc = lxb_dom_interface_node(attr)->owner_document; in lxb_dom_attr_interface_destroy() local 120 lexbor_mraw_free(doc->text, value->data); in lxb_dom_attr_interface_destroy() 123 lexbor_mraw_free(doc->mraw, value); in lxb_dom_attr_interface_destroy() 136 data = lxb_dom_attr_local_name_append(doc->attrs, name, length); in lxb_dom_attr_set_name() 166 ns_data = lxb_ns_append(doc->ns, link, link_length); in lxb_dom_attr_set_name_ns() 216 if (doc->ev_set_value != NULL) { in lxb_dom_attr_set_value() 217 status = doc->ev_set_value(lxb_dom_interface_node(attr), in lxb_dom_attr_set_value() 232 lexbor_str_init(attr->value, doc->text, value_len); in lxb_dom_attr_set_value() 265 attr->value = lexbor_mraw_alloc(doc->mraw, sizeof(lexbor_str_t)); in lxb_dom_attr_set_value_wo_copy() 327 if (doc->ev_remove != NULL) { in lxb_dom_attr_remove() [all …]
|
/php-src/ext/xsl/ |
H A D | xsltprocessor.c | 63 if (node->doc != transform_ctxt->document->doc) { in xsl_proxy_factory() 213 doc = nodep->doc; in PHP_METHOD() 215 if (doc == NULL) { in PHP_METHOD() 222 newdoc = xmlCopyDoc(doc, 1); in PHP_METHOD() 295 xmlDocPtr doc = NULL; in php_xsl_apply_stylesheet() local 309 doc = node->doc; in php_xsl_apply_stylesheet() 312 if (doc == NULL) { in php_xsl_apply_stylesheet() 339 doc = xmlCopyDoc(doc, 1); in php_xsl_apply_stylesheet() 345 php_libxml_increment_doc_ref(intern->doc, doc); in php_xsl_apply_stylesheet() 427 efree(intern->doc); in php_xsl_apply_stylesheet() [all …]
|