Lines Matching refs:reader
14 $reader = new XMLReader();
15 $reader->XML($xmlstring);
16 $reader->read();
17 var_dump($reader->getAttribute('bar'));
18 var_dump($reader->getAttribute('baz'));
19 $reader->close();
31 $reader = new XMLReader();
32 $reader->XML($xmlstring);
33 $reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
34 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
35 var_dump($reader->getAttribute('bar'));
36 var_dump($reader->getAttribute('baz'));
37 $reader->close();
40 $reader = new XMLReader();
46 $reader->open($file);
48 //$reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
49 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
50 var_dump($reader->getAttribute('bar'));
51 var_dump($reader->getAttribute('baz'));
52 $reader->close();
54 $reader = new XMLReader();
55 $reader->open(dirname(__FILE__) . '/012.xml');
56 $reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
57 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
58 var_dump($reader->getAttribute('bar'));
59 var_dump($reader->getAttribute('baz'));
60 $reader->close();