Marius Røstad wrote:
Not some help withdrawing some data from an XML response from an external source. I have to run through this response and pull the relevant data.
I don't need to use the tags to convert to html, I only need the data within the xml-tags:
<-- snip XML -->
I need to withdraw the data from the tags user id, user name, firstname, lastname, msisdn and locale, to insert it into a database and to check against existing users on my side.
Can anyone help?
Hi,
It might be useful for you to use the XML PHP class in order to manipulate the cdata and/or any attributes that may crop up in future. It's really easy to use and the author even gives examples on it's usage, which is a big plus. 🙂
http://www.hansanderson.com/php/xml/
Just to let you know, I've used this class myself in order to manipulate XML served up remotely via HTTP. Extremely effective.
Hope that helps,
Nick Winfield,
Wirestation Ltd.