anujgarg Posted October 8, 2009 Share Posted October 8, 2009 Hi Everyone, How can I fetch all the values of test_id from the following program: $xml = ' <row> <my_name>ABC</my_name> <test_id>123</test_id> <group>M</group> </row> <row> <my_name>XYZ</my_name> <test_id>456</test_id> <group>F</group> </row>'; Should I use the function simplexml_load_file?? TIA Anuj Link to comment https://forums.phpfreaks.com/topic/176975-fetching-xml-nodes-value/ Share on other sites More sharing options...
Mark Baker Posted October 8, 2009 Share Posted October 8, 2009 load into $xmlData using simpleXML, then it's $xmlData->row->test_id Link to comment https://forums.phpfreaks.com/topic/176975-fetching-xml-nodes-value/#findComment-933130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.