Jump to content

fetching XML nodes value


anujgarg

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.