Hi,
I have been trying for days to get this XML parsed properly, but I cannot seem to do it. I have scoured these boards trying everything that was suggested, but nothing seems to be working for me.
The XML is returned from a web services call via a POSt. The below XML is returned.
What I need is to grab specific values of the ITEM ID attribute. So, I need to get the first_name, last_name, and email values.
Any help would be very appreciated! Btw: I am runnig PHP5.
here is the XML:
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://www.xxx.net">
<root>
<global_info>
<item id="Time" value="3/28/2006 4:10:07 PM" />
<item id="WEBSERVER" value="people.xxx.net/" />
<item id="EMP_IMAGE_PATH" value="images/employee_images/137x170/" />
<item id="EMP_IMAGE_PATH_SMALL" value="images/employee_images/60x70" />
<item id="total_rows" value="2" />
</global_info>
<parameters>
<item id="TYPE" value="L" /><item id="PATTERN" value="barnes, t" />
</parameters>
<table id="results" count="2">
<row status="">
<item id="last_name" value="BARNES" />
<item id="first_name" value="TIM" />
<item id="email" value="tim.barnes@domain.com" />
</row>
<row status="">
<item id="last_name" value="BARNES" />
<item id="first_name" value="TODD" />
<item id="email" value="todd.barnes@domain.com" />
</row>
</table>
</root>
</string>