Lines Matching refs:reader
16 $reader = new XMLReader();
17 if (!$reader->open($filename)) {
22 while ($reader->read()) {
23 if ($reader->nodeType != XMLREADER::END_ELEMENT) {
25 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->name == 'book') {
26 echo $reader->name . "\n";
28 $attr = $reader->moveToNextAttribute();
30 echo $reader->name . ": ";
31 echo $reader->value . "\n";
35 $reader->moveToAttribute('');
41 echo $reader->name . ": ";
42 echo $reader->value . "\n";
45 $attr = $reader->moveToAttribute('isbn');
48 echo $reader->name . ": ";
49 echo $reader->value . "\n";
52 $attr = $reader->moveToAttributeNo(911);
55 echo $reader->name . "\n";
61 $reader->close();