Home
last modified time | relevance | path

Searched refs:dom (Results 26 – 50 of 151) sorted by relevance

1234567

/PHP-7.4/ext/dom/tests/
H A Dbug79271.phpt5 if (!extension_loaded('dom')) die('skip dom extension not available');
9 $dom = new DOMImplementation();
10 $type = $dom->createDocumentType('html');
H A DDOMDocument_savexml_basic.phpt25 $dom = new DOMDocument();
26 $dom->loadXML($xml);
27 $root = $dom->documentElement;
31 var_dump($dom->save($filename));
33 var_dump($result == $dom->saveXML());
H A Dbug77569.phpt5 if (!extension_loaded('dom')) die('skip dom extension not available');
10 $dom = $imp->createDocument("", "");
11 $dom->encoding = null;
H A DDOMDocument_createEntityReference_basic.phpt12 $dom = new DOMDocument('1.0');
13 $ref = $dom->createEntityReference('nbsp');
14 $dom->appendChild($ref);
15 echo $dom->saveXML();
H A DDOMComment_insertData_basic.phpt12 $dom = new DomDocument();
13 $comment = $dom->createComment('test-comment');
15 $dom->appendChild($comment);
16 echo $dom->saveXML();
H A Dbug66502.phpt5 if (!extension_loaded('dom')) die('skip requires ext/dom');
9 $dom = new DOMDocument('1.0', 'UTF-8');
10 $element = $dom->appendChild(new DOMElement('root'));
H A DDOMNode_insertBefore_error5.phpt15 $dom = new DOMDocument();
17 $doc = $dom->load(__DIR__ . "/book.xml", LIBXML_NOBLANKS);
20 $parent_node = $dom->getElementsByTagName("book")->item(0);
23 $new_node = $dom->createElement('newnode');
28 $ref_node = $dom->createElement('newnode3');
30 $dom->saveXML();
H A Ddom_xinclude.phpt10 $dom = new domdocument;
17 $data = str_replace('compress.zlib://ext/dom/tests/','compress.zlib://'.$reldir."/", $data);
20 $dom->loadXML($data);
21 $dom->xinclude();
22 print $dom->saveXML()."\n";
23 foreach ($dom->documentElement->childNodes as $node) {
H A DDOMNode_issamenode_basic.phpt12 $dom = new DOMDocument;
13 $dom->loadXML($xmlstr);
14 if(!$dom) {
19 $node = $dom->documentElement;
25 $nodelist=$dom->getElementsByTagName('tbody') ;
H A Ddomattributes.phpt9 $dom = new DOMDocument;
10 $dom->loadXML($xmlstr);
11 if(!$dom) {
16 $node = $dom->documentElement;
33 print $dom->saveXML($top_element);
H A Ddom_create_element.phpt10 $dom = new domDocument;
11 $dom->createElement('valid');
19 $dom = new domDocument;
28 $dom = new domDocument;
29 $dom->createElement(' ');
37 $dom = new domDocument;
46 $dom = new domDocument;
55 $dom = new domDocument;
64 $dom = new domDocument;
73 $dom = new domDocument;
[all …]
H A DDOMNode_insertBefore_error2.phpt15 $dom = new DOMDocument();
17 $doc = $dom->load(__DIR__ . "/book.xml", LIBXML_NOBLANKS);
20 $parent_node = $dom->getElementsByTagName("book")->item(0);
23 $new_node = $dom->createElement('newnode');
28 $ref_node = $dom->getElementsByTagName("book")->item(1);
H A DDOMNode_insertBefore_error3.phpt15 $dom = new DOMDocument();
17 $doc = $dom->load(__DIR__ . "/book.xml", LIBXML_NOBLANKS);
20 $parent_node = $dom->getElementsByTagName("book")->item(0);
23 $new_node = $dom->createElement('newnode');
28 $ref_node = $dom->getElementsByTagName("book")->item(0)->parentNode;
H A DDOMNode_insertBefore_error4.phpt15 $dom = new DOMDocument();
17 $doc = $dom->load(__DIR__ . "/book.xml", LIBXML_NOBLANKS);
20 $parent_node = $dom->getElementsByTagName("book")->item(0);
23 $new_node = $dom->createElement('newnode');
28 $ref_node = $dom->createElement('newnode2');
H A Dbug46335.phpt12 $dom = new DOMDocument('1.0', 'UTF-8');
13 $node = $dom->createTextNode($textascii);
14 $dom->appendChild($node);
22 $node = $dom->createTextNode($text);
23 $dom->appendChild($node);
H A DDOMElement_hasAttributes_basic.phpt12 $dom = new DOMDocument;
13 $dom->loadXML($xmlstr);
14 if(!$dom) {
19 $element = $dom->documentElement;
27 $nodelist=$dom->getElementsByTagName('tbody') ;
H A Dbug40836.phpt7 $dom = new DOMDocument("1.0", "UTF-8");
8 $dom->preserveWhiteSpace = false;
20 $dom->loadXML($xml);
21 $entry = $dom->getElementsByTagNameNS("http://www.w3.org/2005/Atom", "entry")->item(0);
25 echo $dom->saveXML();
H A Dbug75451.phpt9 $dom = new DOMDocument();
10 $dom->loadXML('<root><child/></root>');
11 $xpath = new DOMXpath($dom);
H A Dbug50661.phpt9 $dom = new DOMDocument();
10 $dom->loadXML($data);
11 echo $dom->saveXML();
/PHP-7.4/ext/dom/
H A Dconfig.w323 ARG_WITH("dom", "DOM support", "yes");
7 ADD_EXTENSION_DEP('dom', 'libxml') &&
10 EXTENSION("dom", "php_dom.c attr.c document.c domerrorhandler.c \
24 if (!CHECK_LIB("libxml2.lib", "dom")) {
25 WARNING("dom support can't be enabled, libxml is not found")
28 PHP_INSTALL_HEADERS("ext/dom", "xml_common.h");
30 WARNING("dom support can't be enabled, libxml is not enabled")
H A Dconfig.m41 PHP_ARG_ENABLE([dom],
3 [AS_HELP_STRING([--disable-dom],
15 PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \
27 PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
28 PHP_ADD_EXTENSION_DEP(dom, libxml)
/PHP-7.4/ext/libxml/tests/
H A Dbug54138_2.phpt5 if (!extension_loaded('dom')) die('skip dom extension not available');
20 $dom = new DOMDocument();
21 $dom->loadXML($xml, LIBXML_BIGLINES);
22 var_dump($dom->getElementsByTagName('bar')->item(0)->getLineNo());
/PHP-7.4/ext/xsl/tests/
H A Dbug26384.phpt7 $dom = new domDocument;
8 $dom->load(__DIR__."/area_name.xml");
9 if(!$dom) {
26 print $proc->transformToXml($dom);
29 print $dom->documentElement->firstChild->nextSibling->nodeName;
H A Dxslt011.phpt13 $dom = new domDocument();
14 $dom->load(__DIR__."/xslt011.xsl");
16 $xsl = $proc->importStylesheet($dom);
34 $dom = new domdocument;
35 $dom->loadXML("<root>this is from an external DomDocument</root>");
36 return $dom->documentElement;
/PHP-7.4/ext/reflection/tests/
H A DReflectionClass_getExtensionName_basic.phpt4 <?php extension_loaded('dom') or die('skip - dom extension not loaded'); ?>
14 string(3) "dom"

Completed in 44 milliseconds

1234567