Lines Matching refs:reader
13 $reader = new XMLReader();
14 $reader->XML($xmlstring);
15 $reader->read();
16 var_dump($reader->getAttribute('bar'));
17 var_dump($reader->getAttribute('baz'));
18 $reader->close();
30 $reader = new XMLReader();
31 $reader->XML($xmlstring);
32 $reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
33 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
34 var_dump($reader->getAttribute('bar'));
35 var_dump($reader->getAttribute('baz'));
36 $reader->close();
39 $reader = new XMLReader();
45 $reader->open($file);
47 //$reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
48 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
49 var_dump($reader->getAttribute('bar'));
50 var_dump($reader->getAttribute('baz'));
51 $reader->close();
53 $reader = new XMLReader();
54 $reader->open(__DIR__ . '/012.xml');
55 $reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
56 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
57 var_dump($reader->getAttribute('bar'));
58 var_dump($reader->getAttribute('baz'));
59 $reader->close();