note 96127 added to class.xmlreader
| From: | careybaird at REMOVETHIS dot googlemail dot com | Date: | Wed, 10 Feb 2010 07:14:22 +0000 |
| Subject: | note 96127 added to class.xmlreader | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165819@lists.php.net to get a copy of this message | ||
I am looking for a way to reset the XML reader. There does not appear to be a method to do this, so
at the moment I am opening the XML file again (which is not ideal as this is making another request
to an external server).
Does anyone know if this is possible?
e.g. something like:
$xml = new XMLReader();
$xml->open($url);
while ($xml->read())
{
#Â Do Stuff
}
$xml->reset();
It is the reset() method here that I am missing...
----
Server IP: 69.147.83.197
Probable Submitter: 119.42.96.196
----
Manual Page -- http://www.php.net/manual/en/class.xmlreader.php
Edit -- https://master.php.net/note/edit/96127
Del: integrated -- https://master.php.net/note/delete/96127/integrated
Del: useless -- https://master.php.net/note/delete/96127/useless
Del: bad code -- https://master.php.net/note/delete/96127/bad+code
Del: spam -- https://master.php.net/note/delete/96127/spam
Del: non-english -- https://master.php.net/note/delete/96127/non-english
Del: in docs -- https://master.php.net/note/delete/96127/in+docs
Del: other reasons-- https://master.php.net/note/delete/96127
Reject -- https://master.php.net/note/reject/96127
Search -- https://master.php.net/manage/user-notes.php