Lines Matching refs:reader
13 $reader = new XMLReader();
14 if (!$reader->open($filename)) {
19 while ($reader->read()) {
20 if ($reader->nodeType != XMLREADER::END_ELEMENT) {
21 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->hasAttributes) {
22 $attr = $reader->moveToFirstAttribute();
23 echo $reader->name . ": ";
24 echo $reader->value . "\n";
26 if ($reader->getAttribute($reader->name) == $reader->value) {
31 $attr = $reader->moveToNextAttribute();
32 echo $reader->name . ": ";
33 echo $reader->value . "\n";
35 if ($reader->getAttribute($reader->name) == $reader->value) {
40 $attr = $reader->moveToAttribute('num');
41 echo $reader->name . ": ";
42 echo $reader->value . "\n";
44 if ($reader->getAttribute('num') == $reader->value) {
48 $attr = $reader->moveToAttribute('idx');
49 echo $reader->name . ": ";
50 echo $reader->value . "\n";
52 if ($reader->getAttribute('idx') == $reader->value) {
57 $attr = $reader->moveToAttributeNo(0);
58 echo $reader->name . ": ";
59 echo $reader->value . "\n";
61 if ($reader->getAttributeNo(0) == $reader->value) {
65 $attr = $reader->moveToAttributeNo(1);
66 echo $reader->name . ": ";
67 echo $reader->value . "\n";
72 $reader->close();