Phpster schrieb:
On Feb 6, 2009, at 9:12, Jônatas Zechim <zechim.php@xxxxxxxxx> wrote:
Hi 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.php
Remove 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,
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
Carlos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php