/PHP-5.5/ext/xmlreader/tests/ |
H A D | 003.phpt | 14 $reader = new XMLReader(); 20 while ($reader->read()) { 22 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->hasAttributes) { 24 echo $reader->name . ": "; 27 if ($reader->getAttribute($reader->name) == $reader->value) { 33 echo $reader->name . ": "; 36 if ($reader->getAttribute($reader->name) == $reader->value) { 45 if ($reader->getAttribute('num') == $reader->value) { 53 if ($reader->getAttribute('idx') == $reader->value) { 62 if ($reader->getAttributeNo(0) == $reader->value) { [all …]
|
H A D | 012.phpt | 14 $reader = new XMLReader(); 15 $reader->XML($xmlstring); 16 $reader->read(); 19 $reader->close(); 34 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); 37 $reader->close(); 46 $reader->open($file); 49 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); 52 $reader->close(); 57 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); [all …]
|
H A D | 013.phpt | 18 $reader = new XMLReader(); 19 $reader->XML($xml); 21 while($reader->read()) { 22 if ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'item') { 23 $reader->read(); 24 var_dump($reader->value); 27 $reader->close(); 38 $reader = new XMLReader(); 39 $reader->XML($xml); 41 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); [all …]
|
H A D | 007.phpt | 14 $reader = new XMLReader(); 15 $reader->open($file); 18 while ($reader->read()); 20 if ($reader->isValid()) { 25 $reader->close(); 29 $reader = new XMLReader(); 30 $reader->XML($xmlstring); 35 if ($reader->isValid()) { 41 $reader->close(); 44 $reader->XML($xmlstring); [all …]
|
H A D | 011.phpt | 5 $reader = new XMLReader(); 15 $reader = new XMLReader(); 16 $reader->XML($xmlstring); 17 $reader->read(); 18 echo $reader->readInnerXml(); 20 $reader->close(); 23 $reader = new XMLReader(); 24 $reader->XML($xmlstring); 25 $reader->read(); 26 echo $reader->readOuterXml(); [all …]
|
H A D | 006.phpt | 12 $reader = new XMLReader(); 14 $reader->XML($xmlstring); 17 $reader->read(); 18 $reader->read(); 20 if ($reader->nodeType != XMLREADER::END_ELEMENT) { 21 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->hasAttributes) { 22 $attr = $reader->moveToFirstAttribute(); 23 if ($reader->moveToElement()) { 24 if ($reader->name == 'book') { 31 $reader->close();
|
H A D | 004.phpt | 14 $reader = new XMLReader(); 15 if (!$reader->open($filename)) { 19 while ($reader->read()) { 20 if ($reader->nodeType != XMLREADER::END_ELEMENT) { 21 echo $reader->name."\n"; 22 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->hasAttributes) { 23 $attr = $reader->moveToFirstAttribute(); 25 echo " Attribute Name: ".$reader->name."\n"; 26 echo " Attribute Value: ".$reader->value."\n"; 27 $attr = $reader->moveToNextAttribute(); [all …]
|
H A D | 002.phpt | 13 $reader = new XMLReader(); 14 if ($reader->open('')) exit(); 16 $reader = new XMLReader(); 17 if (!$reader->open($filename)) { 18 $reader->close(); 23 while ($reader->read()) { 24 echo $reader->name."\n"; 26 $reader->close(); 29 $reader = new XMLReader(); 30 $reader->open($filename); [all …]
|
H A D | 008.phpt | 30 $reader = new XMLReader(); 31 $reader->open($file); 32 $reader->setParserProperty(XMLREADER::LOADDTD, TRUE); 33 $reader->setParserProperty(XMLREADER::VALIDATE, TRUE); 34 while($reader->read()); 35 if ($reader->isValid()) { 38 $reader->close(); 57 $reader = new XMLReader(); 58 $reader->XML($xmlstring); 62 while($reader->read()); [all …]
|
H A D | 005.phpt | 12 $reader = new XMLReader(); 14 $reader->XML($xmlstring); 17 $a = $reader->setParserProperty(XMLReader::LOADDTD, false); 18 $b = $reader->getParserProperty(XMLReader::LOADDTD); 24 $a = $reader->setParserProperty(XMLReader::SUBST_ENTITIES, true); 25 $b = $reader->getParserProperty(XMLReader::SUBST_ENTITIES); 31 while ($reader->read()); 32 $reader->close();
|
H A D | 009.phpt | 12 $reader = new XMLReader(); 13 $reader->XML($xmlstring); 16 $reader->read(); 17 $reader->read(); 19 $reader->next(); 20 echo $reader->name; 22 echo $reader->getAttribute('num');
|
H A D | 010.phpt | 11 $reader = new XMLReader(); 12 $reader->XML($xmlstring); 15 $reader->read(); 16 $reader->read(); 18 $reader->next(); 19 echo $reader->name; 21 echo $reader->getAttributeNs('isbn', 'uri');
|
H A D | bug42139.phpt | 19 $reader = new XMLReader; 20 $reader->XML( $xml, NULL, LIBXML_NOENT); 21 while ( $reader->read() ) { 22 echo "{$reader->nodeType}, {$reader->name}, {$reader->value}\n"; 24 $reader->close();
|
H A D | expand.phpt | 6 $reader = new XMLReader(); 7 if (!method_exists($reader, 'expand')) print "skip"; 21 $reader = new XMLReader(); 22 $reader->XML($xmlstring); 23 while ($reader->read()) { 24 if ($reader->localName == "book") { 25 $node = $reader->expand($dom); 32 $reader->close();
|
H A D | 001.phpt | 12 $reader = new XMLReader(); 13 $reader->XML($xmlstring); 16 while ($reader->read()) { 17 echo $reader->name."\n"; 20 $reader = new XMLReader(); 21 $reader->XML($xmlstring);
|
/PHP-5.5/ext/xmlreader/examples/ |
H A D | xmlreader_file.php | 2 $reader = new XMLReader(); variable 3 $reader->open('xmlreader.xml'); 4 while ($reader->read()) { 5 if ($reader->nodeType != XMLREADER::END_ELEMENT) { 6 print "Node Name: ".$reader->name."\n"; 7 print "Node Value: ".$reader->value."\n"; 8 print "Node Depth: ".$reader->depth."\n"; 9 if ($reader->nodeType==XMLREADER::ELEMENT && $reader->hasAttributes) { 10 $attr = $reader->moveToFirstAttribute(); 12 print " Attribute Name: ".$reader->name."\n"; [all …]
|
H A D | xmlreader_string.php | 13 $reader = new XMLReader(); variable 14 $reader->XML($xmlstring); 15 while ($reader->read()) { 16 if ($reader->nodeType != XMLREADER::END_ELEMENT) { 17 print "Node Name: ".$reader->name."\n"; 18 print "Node Value: ".$reader->value."\n"; 19 print "Node Depth: ".$reader->depth."\n"; 20 if ($reader->nodeType==XMLREADER::ELEMENT && $reader->hasAttributes) { 21 $attr = $reader->moveToFirstAttribute(); 23 print " Attribute Name: ".$reader->name."\n"; [all …]
|
H A D | xmlreader_relaxNG.php | 4 $reader = new XMLReader(); variable 5 $reader->open('relaxNG.xml'); 10 if ($reader->setRelaxNGSchema('relaxNG.rng')) { 11 while ($reader->read()) { 13 print str_repeat(" ", $reader->depth * $indent).$reader->name."\n"; 19 if (! $reader->isValid()) {
|
/PHP-5.5/ext/zip/examples/ |
H A D | odt.php | 3 $reader = new XMLReader(); variable 5 $reader->open('zip://' . dirname(__FILE__) . '/test.odt#meta.xml'); 7 while ($reader->read()) { 8 if ($reader->nodeType == XMLREADER::ELEMENT) { 9 $elm = $reader->name; 11 if ($reader->nodeType == XMLREADER::END_ELEMENT && $reader->name == 'office:meta') { 14 if (!trim($reader->value)) { 17 $odt_meta[$elm] = $reader->value;
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | bug41815.phpt | 10 $reader = fopen($filename, "r"); 11 fread($reader, 1); 14 if (strlen(fread($reader, 10)) > 0) { 19 fclose($reader);
|
/PHP-5.5/Zend/tests/ |
H A D | bug34617.phpt | 10 $reader = xml_parser_create(); 11 xml_set_object($reader, new Thing()); 13 xml_parser_free($reader);
|
/PHP-5.5/ext/xmlreader/ |
H A D | README | 1 XMLReader represents a reader that provides non-cached,
|
H A D | php_xmlreader.c | 42 typedef int (*xmlreader_read_int_t)(xmlTextReaderPtr reader); 871 xmlTextReaderPtr reader = NULL; in PHP_METHOD() local 895 reader = xmlReaderForFile(valid_file, encoding, options); in PHP_METHOD() 898 if (reader == NULL) { in PHP_METHOD() 906 intern->ptr = reader; in PHP_METHOD() 910 intern->ptr = reader; in PHP_METHOD() 1055 xmlTextReaderPtr reader; in PHP_METHOD() local 1092 reader = xmlNewTextReader(inputbfr, uri); in PHP_METHOD() 1094 if (reader != NULL) { in PHP_METHOD() 1096 ret = xmlTextReaderSetup(reader, NULL, uri, encoding, options); in PHP_METHOD() [all …]
|
/PHP-5.5/Zend/ |
H A D | zend_ts_hash.c | 29 if ((++(ht->reader)) == 1) { in begin_read() 40 if ((--(ht->reader)) == 0) { in end_read() 67 ht->reader = 0; in _zend_ts_hash_init() 77 ht->reader = 0; in _zend_ts_hash_init_ex() 96 ht->reader = 0; in zend_ts_hash_clean()
|
H A D | zend_stream.h | 57 zend_stream_reader_t reader; member
|