Page 1 of 1

how to read an xml file?

Posted: Tue Jul 05, 2005 11:58 pm
by saumya
how can i read an xml file? Is it possible to go through all the nodes and node values through Php? If yes, please tell the way to go. I have an xml file and i want ccertain data from that file to be echoed or printed on an web page.How can i do that?
thanks

Posted: Wed Jul 06, 2005 12:01 am
by hawleyjr
PHP 5 is better with XML then 4.

Here is a good article to convert XML to a PHP Array:

http://www.devarticles.com/c/a/PHP/Conv ... ructure/7/

Posted: Wed Jul 06, 2005 12:28 am
by saumya
thanks.
Actually i am using php 5.
Let me go through the article and i will get back to you.
thanks

Posted: Wed Jul 06, 2005 10:25 am
by andre_c
very easy with php 5
http://php.net/simple_xml

Posted: Wed Jul 06, 2005 11:18 pm
by saumya
thank you very much.I will go through it and tell you.
thanks