note 108000 added to class.xmlreader

From: Date: Wed, 21 Mar 2012 13:54:24 +0000
Subject: note 108000 added to class.xmlreader
Groups: php.notes 
Request: Send a blank email to php-notes+get-186756@lists.php.net to get a copy of this message
Sometimes you have an unusual URL that doesn't actually point to an xml file but still returns xml as output (Like the Battlefield Heroes generated syndication urls). Using get_file_contents(url) you can retrieve the xml data from these urls and pass it as a variable for processing as an XML String. Unfortunately simpleXML or xml DOM cannot process all xml strings. Some have error boxes added to the end of them (such as Battlefield Heroes syndicated news). These boxes cause an end of file sort of error and closes out the script. XMLReader grabs data from these strings without error. ---- Server IP: 69.147.83.197 Probable Submitter: 24.231.254.147 ---- Manual Page -- http://www.php.net/manual/en/class.xmlreader.php Edit -- https://master.php.net/note/edit/108000 Del: integrated -- https://master.php.net/note/delete/108000/integrated Del: useless -- https://master.php.net/note/delete/108000/useless Del: bad code -- https://master.php.net/note/delete/108000/bad+code Del: spam -- https://master.php.net/note/delete/108000/spam Del: non-english -- https://master.php.net/note/delete/108000/non-english Del: in docs -- https://master.php.net/note/delete/108000/in+docs Del: other reasons-- https://master.php.net/note/delete/108000 Reject -- https://master.php.net/note/reject/108000 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186756) next »