xref: /php-src/ext/xmlreader/tests/010.phpt (revision 74859783)
1--TEST--
2XMLReader: libxml2 XML Reader, next
3--EXTENSIONS--
4xmlreader
5--FILE--
6<?php
7$xmlstring = '<?xml version="1.0" encoding="UTF-8"?>
8<prefix:books xmlns:prefix="uri" isbn="" prefix:isbn="12isbn">book1</prefix:books>';
9
10$reader = new XMLReader();
11$reader->XML($xmlstring);
12
13// Only go through
14$reader->read();
15$reader->read();
16
17$reader->next();
18echo $reader->name;
19echo " ";
20echo $reader->getAttributeNs('isbn', 'uri');
21echo "\n";
22?>
23--EXPECT--
24prefix:books 12isbn
25