Lines Matching refs:reader
14 $reader = new XMLReader();
15 if (!$reader->open($filename)) {
20 while ($reader->read()) {
21 if ($reader->nodeType != XMLREADER::END_ELEMENT) {
22 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->hasAttributes) {
23 $attr = $reader->moveToFirstAttribute();
24 echo $reader->name . ": ";
25 echo $reader->value . "\n";
27 if ($reader->getAttribute($reader->name) == $reader->value) {
32 $attr = $reader->moveToNextAttribute();
33 echo $reader->name . ": ";
34 echo $reader->value . "\n";
36 if ($reader->getAttribute($reader->name) == $reader->value) {
41 $attr = $reader->moveToAttribute('num');
42 echo $reader->name . ": ";
43 echo $reader->value . "\n";
45 if ($reader->getAttribute('num') == $reader->value) {
49 $attr = $reader->moveToAttribute('idx');
50 echo $reader->name . ": ";
51 echo $reader->value . "\n";
53 if ($reader->getAttribute('idx') == $reader->value) {
58 $attr = $reader->moveToAttributeNo(0);
59 echo $reader->name . ": ";
60 echo $reader->value . "\n";
62 if ($reader->getAttributeNo(0) == $reader->value) {
66 $attr = $reader->moveToAttributeNo(1);
67 echo $reader->name . ": ";
68 echo $reader->value . "\n";
73 $reader->close();