M
mr_burns
hi,
i am currently tryin to learn enough xml dom to read a simple xml file
and output the contents using php. at the moment i am reading a book
(professional php4 xml) but i am running out of time as i kinda need
to get it up asap. below is how the xml file will be presented:
<?xml version="1.0" encoding="iso-8859-1"?>
<products>
<item name="gold">
<price>15.00</price>
</item>
<item name="silver">
<price>12.50</price>
</item>
<item name="bronze">
<price>10.00</price>
</item>
</products>
if its not too much code, could someone please tell me how i would do
this? i only need to read the file and print the output. the reason i
have asked for xml dom is because i have checked that the server has
this enabled (i have learned that much). otherwise, are their any
short tutorials on this? cheers
burnsy
i am currently tryin to learn enough xml dom to read a simple xml file
and output the contents using php. at the moment i am reading a book
(professional php4 xml) but i am running out of time as i kinda need
to get it up asap. below is how the xml file will be presented:
<?xml version="1.0" encoding="iso-8859-1"?>
<products>
<item name="gold">
<price>15.00</price>
</item>
<item name="silver">
<price>12.50</price>
</item>
<item name="bronze">
<price>10.00</price>
</item>
</products>
if its not too much code, could someone please tell me how i would do
this? i only need to read the file and print the output. the reason i
have asked for xml dom is because i have checked that the server has
this enabled (i have learned that much). otherwise, are their any
short tutorials on this? cheers
burnsy