Jump to content

Archived

This topic is now archived and is closed to further replies.

willpower

Parse some XML and return part string

Recommended Posts

I have an XML response from a webservce.  I thought it was stored in array format...but apparently not.

I need to parse the string and extract the content between the <temperature>THIS IS WHAT I NEED</temperature> tags.

I have no way of knowing how many chars may come before, during or after.

Any ideas?

Thanks

Will

Share this post


Link to post
Share on other sites
look into using the PHP xml_parse() function set. you can get a good overview of XML parsing techniques in this [url=http://www.zend.com/zend/art/parsing.php]ZEND tutorial[/url]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.