Fot SImpler XMLs  and not too large up to 1Mb  I would use

$X = simplexml_load_file($URL);

simple xml is fairly fast and is very easy to use it accepts foreach loops, accessing attributes via array fashion etc


On May 12, 2008, at 9:02 AM, Waynn Lue wrote:

What's the best way to pull down XML from a URL?  fopen($URL), then
using xml_parse?  Or should I be using XML_Parser or SimpleXML?

Thanks,
Waynn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Bojan Tesanovic
http://www.carster.us/




Reply via email to