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 Link to comment https://forums.phpfreaks.com/topic/211452-how-does-xml-work-with-php/ Share on other sites More sharing options...
Mchl Posted August 22, 2010 Share Posted August 22, 2010 See: simplexml, xmlreader and xmlwriter extensions Link to comment https://forums.phpfreaks.com/topic/211452-how-does-xml-work-with-php/#findComment-1102489 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 Link to comment https://forums.phpfreaks.com/topic/211452-how-does-xml-work-with-php/#findComment-1102491 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 Link to comment https://forums.phpfreaks.com/topic/211452-how-does-xml-work-with-php/#findComment-1102493 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 Link to comment https://forums.phpfreaks.com/topic/211452-how-does-xml-work-with-php/#findComment-1102495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.