Lines Matching refs:reader
13 $reader = new XMLReader();
14 if (!$reader->open($filename)) {
18 while ($reader->read()) {
19 if ($reader->nodeType != XMLREADER::END_ELEMENT) {
20 echo $reader->name."\n";
21 if ($reader->nodeType == XMLREADER::ELEMENT && $reader->hasAttributes) {
22 $attr = $reader->moveToFirstAttribute();
24 echo " Attribute Name: ".$reader->name."\n";
25 echo " Attribute Value: ".$reader->value."\n";
26 $attr = $reader->moveToNextAttribute();
31 $reader->close();