Jump to content

XML DOM - Loop


kalle123

Recommended Posts

Hi.

First a sample of the XML I'm trying to read using XML DOM:

 

<team_data>
<team_players>
<player>
<player_name></player_name>
</player>
<player>
<player_name></player_name>
</player>
</team_players>
</team_data>

 

 

I'm trying to loop the DOM to read every players name (there're more than two players and different numbers of players). Can anyone help me?

Link to comment
https://forums.phpfreaks.com/topic/158722-xml-dom-loop/
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.