NYCPHP Meetup

NYPHP.org

[nycphp-talk] CSV/XML

David Sklar sklar at sklar.com
Thu Sep 25 11:08:18 EDT 2003


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

I think so.

> * 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? ...

IIRC the load_file routine uses the underlying streams support, so you
should be able to use it for whatever stream types are supported:

simplexml_load_file('http://www.example.com/my.xml');
simplexml_load_file('compress.bzip2://my.xml.bz2');

and so on...

David




More information about the talk mailing list