jeger003 Posted August 22, 2010 Share Posted August 22, 2010 Hi everybody *asian accent*, im trying to figure out how to display xml in php i know how to do things like <condition> <conditionId>4000</conditionId> <conditionDisplayName>Very Good</conditionDisplayName> </condition> for each blah blah as $item $condition = $item->condition->conditionId echo $condition; BUT........how do i get these values in XML to display in php this <searchResult count="2"> I want to get the value of count to display help please Quote Link to comment Share on other sites More sharing options...
Mchl Posted August 22, 2010 Share Posted August 22, 2010 See: simplexml, xmlreader and xmlwriter extensions Quote Link to comment Share on other sites More sharing options...
jeger003 Posted August 22, 2010 Author Share Posted August 22, 2010 aww man gonna make me do work. i was hoping someone already knew......is it not similar to getting the first values Quote Link to comment Share on other sites More sharing options...
Mchl Posted August 22, 2010 Share Posted August 22, 2010 FOr exampe simplexml has attributes() method: http://www.php.net/manual/en/simplexmlelement.attributes.php Quote Link to comment Share on other sites More sharing options...
jeger003 Posted August 22, 2010 Author Share Posted August 22, 2010 thank you!! this is what i was looking for......examples help out the best Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.