NYCPHP Meetup

NYPHP.org

[nycphp-talk] CSV/XML

jon baer jonbaer at jonbaer.net
Thu Sep 25 09:27:29 EDT 2003


ah ok ... i think this was covered in one meeting ... can u recap a few ?'s
for me (i havent actually tried it yet - just look @ the cvs notes -
http://cvs.php.net/cvs.php/pecl/simplexml/simplexml.c):

* so the array to the element can go down as far as you want? ie:
$root->node1->node2->node3->node4->node5

* there is only load_file (local) + load_string (content) will there be
load_resource or something to let you pull in other streams? although i
guess you could still pull off something like
simplexml_load_string(file_get_contents(url)) is that the idea? ...

- jon

----- Original Message -----
From: "David Sklar" <sklar at sklar.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Thursday, September 25, 2003 9:17 AM
Subject: RE: [nycphp-talk] CSV/XML


> Well, with SimpleXML in PHP 5, you can do something like
>
> $handle = simplexml_load_file('file.xml');
> foreach ($handle as $root) {
>     print "$root->name $root->url";
> }




More information about the talk mailing list