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";
34 $attr = $reader->getAttribute('');
37 echo $reader->name . ": ";
38 echo $reader->value . "\n";
41 $attr = $reader->getAttribute('isbn');
44 echo $reader->name . ": ";
45 echo $reader->value . "\n";
48 $attr = $reader->getAttributeNo(911);
51 echo $reader->name . ": ";
52 echo $reader->value . "\n";
58 $reader->close();