Hello everyone.. i have done some xml parsing before in the past, but i am having trouble parsing this xml.. basically all i want to do is parse out the field name, and the field value...
$response = "<RESPONSE>
<FIELDS>
<FIELD KEY=\"CUST_NBR\">9009</FIELD>
<FIELD KEY=\"DBA_NBR\">1</FIELD>
<FIELD KEY=\"TERMINAL_NBR\">1</FIELD>
<FIELD KEY=\"TRAN_TYPE\">CCM1</FIELD>
<FIELD KEY=\"BATCH_ID\">1200</FIELD>
<FIELD KEY=\"TRAN_NBR\">4</FIELD>
<FIELD KEY=\"LOCAL_DATE\">080408</FIELD>
<FIELD KEY=\"LOCAL_TIME\">084907</FIELD>
</FIELDS>
</RESPONSE>";
i hope someone can help me out on this one.. whats the way to get this done?
thanks!