--TEST-- XMLReader: libxml2 XML Reader, next --SKIPIF-- --FILE-- book1'; $reader = new XMLReader(); $reader->XML($xmlstring); // Only go through $reader->read(); $reader->read(); $reader->next(); echo $reader->name; echo " "; echo $reader->getAttributeNs('isbn', 'uri'); echo "\n"; ?> --EXPECT-- prefix:books 12isbn