Hi,
I am creating an array of the XML response that i get from an external webservice, and store data in my database using that array, however, i am caught in some problem with an XML response like this:
<SOAP:Envelope xmlns:SOAP=“http://schemas.xmlsoap.org/soap/envelope/”>
<SOAP:Body>
<ns1:mt_get_xxx_xxx xmlns:ns1="http://xxxxx.com/xxx/xxxx">
<item>
<REGION>AM</REGION>
<CITY_CODE>000001302604</CITY_CODE>
<MC_CITY>MANAUS</MC_CITY>
<DISTRICT/>
</item>
<item>
<REGION>AM</REGION>
<CITY_CODE>000001302605</CITY_CODE>
<MC_CITY>Misc</MC_CITY>
<DISTRICT/>
</item>
</ns1:mt_xxx_xxx_resp>
</SOAP:Body>
</SOAP:Envelope>
How can i create an array for two tags"<item>" having same name?
How can i process this response for saving in DB, please suggest!
Thanks,
Kul.