Home
last modified time | relevance | path

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

12345678910>>...36

/PHP-5.4/ext/xmlreader/examples/
H A Dxmlreader_validatedtd.php4 $xml = new XMLReader(); variable
5 $xml->open("dtdexample.xml");
6 $xml->setParserProperty(XMLREADER::LOADDTD, TRUE);
7 $xml->setParserProperty(XMLREADER::VALIDATE, TRUE);
8 while($xml->read()) {
10 print str_repeat(" ", $xml->depth * $indent).$xml->name."\n";
11 if ($xml->hasAttributes) {
12 $attCount = $xml->attributeCount;
13 print str_repeat(" ", $xml->depth * $indent)." Number of Attributes: ".$xml->attributeCount."\n";
17 var_dump($xml->isValid());
/PHP-5.4/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 $count = count($xml->bla->posts);
14 $xml->bla->posts[$count]->name = "FooBar";
15 echo $xml->asXML();
17 $xml->bla->posts[]->name = "FooBar";
18 echo $xml->asXML();
23 <?xml version="1.0"?>
26 <?xml version="1.0"?>
[all …]
H A Dbug42259.phpt10 $xml =<<<EOF
11 <xml>
25 </xml>
28 $sxe = new SimpleXMLIterator($xml);
42 3 steps: xml/fieldset1/field1
43 3 steps: xml/fieldset1/field2
44 4 steps: xml/fieldset2/options/option1
45 4 steps: xml/fieldset2/options/option2
46 4 steps: xml/fieldset2/options/option3
47 3 steps: xml/fieldset2/field1
[all …]
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 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);
38 string(11) "slide_*.xml"
47 string(11) "slide_*.xml"
55 string(11) "slide_*.xml"
60 string(11) "slide_*.xml"
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 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();
14 <?xml version="1.0"?>
H A Dbug41175.phpt8 $xml = new SimpleXmlElement("<img></img>");
9 $xml->addAttribute("src", "foo");
10 $xml->addAttribute("alt", "");
11 echo $xml->asXML();
16 <?xml version="1.0"?>
H A Dbug46047.phpt7 $xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>',
9 print_r($xml);
11 $xml = new SimpleXMLElement('<foo><bar></bar><baz/></foo>');
12 print_r($xml);
14 $xml = new SimpleXMLElement('<foo><bar/><baz/></foo>');
15 print_r($xml);
H A Dbug41582.phpt8 $xml = new SimpleXMLElement('<?xml version="1.0" standalone="yes"?>
11 $xml->movie[]->characters->character[0]->name = 'Miss Coder';
13 echo($xml->asXml());
18 <?xml version="1.0" standalone="yes"?>
/PHP-5.4/ext/xmlwriter/tests/
H A Dbug41326.phpt9 $xml = new XmlWriter();
10 $xml->openMemory();
11 $xml->setIndent(true);
12 $xml->startDocument();
13 $xml->startElement('test');
18 $xml->endElement('bar');
19 $xml->endElement();
20 $xml->endElement();
21 print $xml->flush(true);
41 <?xml version="1.0"?>
[all …]
/PHP-5.4/ext/dom/tests/
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 DDOMDocumentType_systemId_basic_001.phpt10 $xml = '<?xml version="1.0" encoding="UTF-8" ?>';
11 $xml .= '<!DOCTYPE chapter>';
12 $xml .= '<chapter>1</chapter>';
14 $doc->loadXML($xml);
H A DDOMDocumentType_publicId_basic_001.phpt10 $xml = '<?xml version="1.0" encoding="UTF-8" ?>';
11 $xml .= '<!DOCTYPE chapter SYSTEM "http://www.xmlwriter.net/logo.gif">';
12 $xml .= '<chapter>1</chapter>';
14 $doc->loadXML($xml);
/PHP-5.4/ext/xml/tests/
H A Dxml_set_processing_instruction_handler_basic.phpt5 if (!extension_loaded("xml")) {
13 * Source code: ext/xml/xml.c
38 $xml = <<<HERE
39 <?xml version="1.0" encoding="ISO-8859-1"?>
40 <?xml-stylesheet href="default.xsl" type="text/xml"?>
45 $p1->parse($xml);
50 Target: xml-stylesheet
51 Data: href="default.xsl" type="text/xml"
H A Dskipif.inc3 //if (!extension_loaded("xml")) {
5 // @dl("xml$dlext");
7 if (!extension_loaded("xml")) {
8 die('skip xml extension not available');
/PHP-5.4/ext/zip/tests/
H A Dbug7658.phpt13 "Configurations2/accelerator/current.xml",
20 "content.xml",
21 "styles.xml",
22 "meta.xml",
24 "settings.xml",
25 "META-INF/manifest.xml",
37 $zip->deleteName('content.xml');
38 $zip->addFile($dirname . "bug7658.xml","content.xml");
/PHP-5.4/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 …]
/PHP-5.4/ext/xml/
H A Dconfig.w324 ARG_WITH("xml", "XML support", "yes");
8 && ADD_EXTENSION_DEP('xml', 'libxml')) {
9 EXTENSION("xml", "xml.c compat.c");
14 PHP_INSTALL_HEADERS("", "ext/xml");
16 WARNING("xml support can't be enabled, libraries or headers are missing")
/PHP-5.4/ext/phar/tests/cache_list/files/
H A Dblog.phar1 <?php if(file_exists(dirname(__FILE__) . "/files/config.xml")) {
2 Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml");
6 …��7Hv���r�%�������� ���install.php����7H���2���������<?php if (!file_exists("config.xml")) {
10 var_dump(file_get_contents("config.xml"));
H A Dblog.phar.inc7 $phar->setStub('<?php if(file_exists(dirname(__FILE__) . "/files/config.xml")) {
8 Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml");
12 $phar['index.php'] = '<?php if (!file_exists("config.xml")) {
16 var_dump(file_get_contents("config.xml"));
/PHP-5.4/ext/phar/tests/files/
H A Dblog.phar3 if(file_exists(dirname(__FILE__) . "/files/config.xml")) {
4 Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml");
8 …���?2�I����坙�������� ���install.php���?2�I���2���������<?php if (!file_exists("config.xml")) {
12 var_dump(str_replace("\r\n", "\n", file_get_contents("config.xml")));

Completed in 38 milliseconds

12345678910>>...36