Lines Matching refs:reader
14 $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();
32 $reader->close();