Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 40) sorted by relevance

12

/PHP-5.6/ext/xmlreader/tests/
H A D003.phpt14 $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 D012.phpt14 $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 D013.phpt18 $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 D007.phpt14 $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 D011.phpt5 $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 D006.phpt12 $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 D004.phpt14 $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 D002.phpt13 $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 D008.phpt30 $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 D005.phpt12 $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 D009.phpt12 $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 D010.phpt11 $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 Dbug42139.phpt19 $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 Dexpand.phpt6 $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 D001.phpt12 $reader = new XMLReader();
13 $reader->XML($xmlstring);
16 while ($reader->read()) {
17 echo $reader->name."\n";
20 $reader = new XMLReader();
21 $reader->XML($xmlstring);
H A Dbug73053.phpt2 Bug #73053 (XML reader with setSchema now fails under 5.6.25)
/PHP-5.6/ext/xmlreader/examples/
H A Dxmlreader_file.php2 $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 Dxmlreader_string.php13 $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 Dxmlreader_relaxNG.php4 $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.6/ext/zip/examples/
H A Dodt.php3 $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.6/ext/standard/tests/file/
H A Dbug41815.phpt10 $reader = fopen($filename, "r");
11 fread($reader, 1);
14 if (strlen(fread($reader, 10)) > 0) {
19 fclose($reader);
/PHP-5.6/Zend/tests/
H A Dbug34617.phpt10 $reader = xml_parser_create();
11 xml_set_object($reader, new Thing());
13 xml_parser_free($reader);
/PHP-5.6/ext/xmlreader/
H A DREADME1 XMLReader represents a reader that provides non-cached,
H A Dphp_xmlreader.c42 typedef int (*xmlreader_read_int_t)(xmlTextReaderPtr reader);
865 xmlTextReaderPtr reader = NULL; in PHP_METHOD() local
889 reader = xmlReaderForFile(valid_file, encoding, options); in PHP_METHOD()
892 if (reader == NULL) { in PHP_METHOD()
900 intern->ptr = reader; in PHP_METHOD()
904 intern->ptr = reader; in PHP_METHOD()
1049 xmlTextReaderPtr reader; in PHP_METHOD() local
1086 reader = xmlNewTextReader(inputbfr, uri); in PHP_METHOD()
1088 if (reader != NULL) { in PHP_METHOD()
1090 ret = xmlTextReaderSetup(reader, NULL, uri, encoding, options); in PHP_METHOD()
[all …]
/PHP-5.6/Zend/
H A Dzend_ts_hash.c29 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()

Completed in 37 milliseconds

12