Re: Read a XML (not a file)
| From: | Carlos Medina | Date: | Fri, 06 Feb 2009 14:55:25 +0000 |
| Subject: | Re: Read a XML (not a file) | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287819@lists.php.net to get a copy of this message | ||
Phpster schrieb:
On Feb 6, 2009, at 9:12, Jônatas Zechim <zechim.php@gmail.com> wrote:call the site to generate the XML data with simplexml function $xml = simplexml_load_string( fopen("http://www.example.com/", "r") ); But if we want to be serious: Use classes to do this is better. Regards CarlosHi there, i want do read a XML like this: Server.php <?php header ("content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"iso-5718\" ?> <images> <image> <ID>1</ID> <album>teste<album> <path>/images/teste.jpg</path> </image> </images>"; ?> How can do this? zechim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpRemove the php tags and code, and just save the file as XML. Then you can have another file read in and or echo the HTML Bastien Hi,