Home
last modified time | relevance | path

Searched refs:xml (Results 1 – 25 of 1177) sorted by relevance

12345678910>>...48

/php-src/ext/libxml/tests/
H A Dlibxml_entity_loading_disabled_by_default.phpt6 xml
11 $xml = <<<EOT
12 <?xml version="1.0" encoding="UTF-8"?>
18 $xml = str_replace('XXE_URI', $dir . '/libxml_disable_entity_loader_payload.txt', $xml);
20 function parseXML1($xml) {
22 $doc->loadXML($xml, 0);
26 function parseXML2($xml) {
27 return simplexml_load_string($xml);
30 function parseXML3($xml) {
32 xml_parse_into_struct($p, $xml, $vals, $index);
[all …]
/php-src/ext/dom/tests/
H A Dgh12870_b.phpt15 test('', 'xml');
23 test(NULL, 'xml:foo');
34 <?xml version="1.0"?>
43 <?xml version="1.0"?>
44 <root xml:xml=""/>
52 <?xml version="1.0"?>
53 <root xml:xml=""/>
55 --- Testing "", "xml" ---
61 <?xml version="1.0"?>
62 <root xml=""/>
[all …]
H A DDOMDocumentType_basic_001.phpt11 $xml = '<?xml version="1.0" encoding="UTF-8" ?>';
13 $xml .= '<chapter>1</chapter>';
15 $doc->loadXML($xml);
24 $xml = '<?xml version="1.0" encoding="UTF-8" ?>';
25 $xml .= '<!DOCTYPE img [';
26 $xml .= ' <!ELEMENT img EMPTY>';
27 $xml .= ' <!ATTLIST img src ENTITY #REQUIRED>';
29 $xml .= ' <!NOTATION gif PUBLIC "gif viewer">';
30 $xml .= ']>';
31 $xml .= '<img src="logo"/>';
[all …]
H A DDOMDocument_getElementsByTagName_liveness_xinclude.phpt9 $xml = <<<EOD
10 <?xml version="1.0" ?>
14 <xi:include href="book.xml">
16 <p>xinclude: book.xml not found</p>
24 $dom->loadXML($xml);
34 string(28) "xinclude: book.xml not found"
35 <?xml version="1.0"?>
40 <p>xinclude: book.xml not found</p>
/php-src/ext/simplexml/tests/
H A Dbug38424.phpt8 $xml = simplexml_load_string('<xml></xml>');
12 $xml["a1"] = "" ;
13 $xml["a1"] = htmlspecialchars($str,ENT_NOQUOTES) ;
15 $xml["a2"] = htmlspecialchars($str,ENT_NOQUOTES) ;
17 $xml["a3"] = "" ;
18 $xml["a3"] = $str ;
20 $xml["a4"] = $str ;
22 echo $xml->asXML();
25 <?xml version="1.0"?>
26 <xml a1="abc &amp;amp; def" a2="abc &amp;amp; def" a3="abc &amp; def" a4="abc &amp; def"/>
H A Dbug35785.phpt8 $xml = simplexml_load_string("<root></root>");
9 $xml->bla->posts->name = "FooBar";
10 echo $xml->asXML();
12 var_dump(isset($xml->bla->posts));
13 $xml->bla->posts[0]->name = "FooBar";
14 echo $xml->asXML();
16 $xml->bla->posts[]->name = "FooBar";
17 echo $xml->asXML();
20 <?xml version="1.0"?>
23 <?xml version="1.0"?>
[all …]
H A Dbug42259.phpt7 $xml =<<<EOF
8 <xml>
22 </xml>
25 $sxe = new SimpleXMLIterator($xml);
38 3 steps: xml/fieldset1/field1
39 3 steps: xml/fieldset1/field2
40 4 steps: xml/fieldset2/options/option1
41 4 steps: xml/fieldset2/options/option2
42 4 steps: xml/fieldset2/options/option3
43 3 steps: xml/fieldset2/field1
[all …]
H A Dbug54973.phpt7 $xml = simplexml_load_string("<xml><number>9223372036854775808</number></xml>");
9 var_dump($xml->number);
11 $int = $xml->number / 1024 / 1024 / 1024;
14 $double = (double) $xml->number / 1024 / 1024 / 1024;
H A D026.phpt7 $xml =<<<EOF
13 function traverse_xml($xml, $pad = '')
15 $name = $xml->getName();
17 foreach($xml->attributes() as $attr => $value)
21 echo ">" . trim($xml) . "\n";
22 foreach($xml->children() as $node)
30 $people = simplexml_load_string($xml);
H A D022.phpt8 $xml =<<<EOF
9 <?xml version='1.0'?>
10 <pres><content><file glob="slide_*.xml"/></content></pres>
13 $sxe = simplexml_load_string($xml);
37 string(11) "slide_*.xml"
46 string(11) "slide_*.xml"
54 string(11) "slide_*.xml"
59 string(11) "slide_*.xml"
H A Dbug38347.phpt8 function iterate($xml)
10 print_r($xml);
11 foreach ($xml->item as $item) {
16 $xmlstr = "<xml><item>Item 1</item><item>Item 2</item></xml>";
17 $xml = simplexml_load_string($xmlstr);
18 iterate($xml->unknown);
H A D028.phpt7 $xml =<<<EOF
11 function traverse_xml($xml, $pad = '')
13 $name = $xml->getName();
15 foreach($xml->attributes() as $attr => $value)
19 echo ">" . trim($xml) . "\n";
20 foreach($xml->children() as $node)
28 $people = simplexml_load_string($xml);
H A Dbug72971_2.phpt8 $xml = new SimpleXMLElement('<root xmlns:ns="ns"><foo>bar</foo><ns:foo>ns:bar</ns:foo></root>');
10 $xml->foo = 'new-bar';
11 var_dump($xml->foo);
12 var_dump($xml->children('ns')->foo);
14 $xml->children('ns')->foo = 'ns:new-bar';
15 var_dump($xml->foo);
16 var_dump($xml->children('ns')->foo);
H A Dbug45553.phpt7 $xml =<<<XML
8 <xml xmlns:a="http://a">
11 </xml>
14 $x = simplexml_load_string($xml);
17 $atts = $x->xpath("/xml/data/@a:label");
19 $atts = $x->xpath("/xml/a:data");
21 $atts = $x->xpath("/xml/a:data/@a:label");
23 $atts = $x->xpath("/xml/a:data/@label");
25 $atts = $x->xpath("/xml/data/@label");
H A Dbug37076.phpt7 $xml = simplexml_load_string("<root><foo /></root>");
8 $xml->foo = "foo";
9 $xml->foo .= "bar";
10 print $xml->asXML();
13 <?xml version="1.0"?>
/php-src/ext/xmlwriter/tests/
H A Dbug41326.phpt7 $xml = new XmlWriter();
8 $xml->openMemory();
9 $xml->setIndent(true);
10 $xml->startDocument();
11 $xml->startElement('test');
15 $xml->startElement('bar');
16 $xml->endElement();
17 $xml->endElement();
18 print $xml->flush(true);
37 <?xml version="1.0"?>
[all …]
/php-src/ext/xml/tests/
H A Dxml_error_string_basic.inc3 '<?xml version="1.0"?><element>',
4 '<?xml>',
5 '<?xml version="dummy">',
6 '<?xml?>',
7 '<?xml version="1.0"?><elem></element>',
10 foreach ($xmls as $xml) {
12 if (!xml_parse($xml_parser, $xml, true)) {
H A Dset_handler_trampoline.phpt4 xml
18 $xml = <<<HERE
19 <?xml version="1.0" encoding="ISO-8859-1"?>
20 <?xml-stylesheet href="default.xsl" type="text/xml"?>
26 xml_parse($parser, $xml, true);
32 Target: xml-stylesheet
33 Data: href="default.xsl" type="text/xml"
H A Dxml_set_processing_instruction_handler_basic.phpt4 xml
28 $xml = <<<HERE
29 <?xml version="1.0" encoding="ISO-8859-1"?>
30 <?xml-stylesheet href="default.xsl" type="text/xml"?>
35 $p1->parse($xml);
40 Target: xml-stylesheet
41 Data: href="default.xsl" type="text/xml"
/php-src/ext/dom/tests/gh11830/
H A Ddocument_variation.phpt10 <?xml version="1.0"?>
45 <?xml version="1.0"?>
47 <?xml version="1.0"?>
53 <?xml version="1.0"?>
55 <?xml version="1.0"?>
61 <?xml version="1.0"?>
63 <?xml version="1.0"?>
69 <?xml version="1.0"?>
71 <?xml version="1.0"?>
77 <?xml version="1.0"?>
[all …]
/php-src/ext/xsl/tests/xinclude/
H A Dxinclude.phpt11 $xml = new DOMDocument;
12 $xml->loadXML('<?xml version="1.0"?><root/>');
16 <?xml version="1.0"?>
20 <xsl:value-of select="document('data.xml')/data/content"/>
29 echo $xslt->transformToXml($xml);
34 echo $xslt->transformToXml($xml);
38 <?xml version="1.0"?>
40 <?xml version="1.0"?>
/php-src/ext/xsl/tests/
H A DcloneDocument.phpt9 $xml = new DOMDocument;
10 $xml->loadXML('<?xml version="1.0"?><root><foo>hello</foo></root>');
13 global $xml;
14 $xml->documentElement->firstChild->textContent = "bye";
19 <?xml version="1.0"?>
32 echo $xslt->transformToXml($xml);
38 echo $xslt->transformToXml($xml);
42 <?xml version="1.0"?>
44 <?xml version="1.0"?>
/php-src/ext/zip/tests/
H A Dbug7658.phpt10 "Configurations2/accelerator/current.xml",
17 "content.xml",
18 "styles.xml",
19 "meta.xml",
21 "settings.xml",
22 "META-INF/manifest.xml",
34 $zip->deleteName('content.xml');
35 $zip->addFile($dirname . "bug7658.xml","content.xml");
/php-src/ext/dom/tests/modern/spec/
H A Dserialize_xml_namespace_on_elements.phpt9 $root = $dom->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:test")…
10 $root->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:child"));
16 <?xml version="1.0" encoding="UTF-8"?>
17 <xml:test><xml:child/></xml:test>
/php-src/ext/phar/tests/
H A Dbug65028.phpt19 "files/search/schema.xml",
43 "modules/cmt/setup/config.xml",
45 "modules/meta/setup/config.xml",
51 "modules/brd/setup/config.xml",
53 "modules/auth/setup/config.xml",
56 "modules/bwd/setup/config.xml",
61 "modules/nws/setup/config.xml",
66 "modules/gmp/setup/config.xml",
71 "modules/mul/setup/config.xml",
77 "modules/cat/setup/config.xml",
[all …]

Completed in 37 milliseconds

12345678910>>...48