title: Get all player info from XML in PHP file
body: <p>I have an API from game tracker that I would like to use on my own template. The link of api is: <a href="http://api.gametracker.rs/demo/xml/server_info/193.104.68.50:28025/" rel="nofollow noreferrer">http://api.gametracker.rs/demo/xml/server_info/193.104.68.50:28025/</a></p>
  
  <p>What I would like to get is all the players in table of PHP, as you can see players_list is a parent of players and child of server_info tag in provided api.</p>
  
  <p>I can get all the info from server_info tag, but unfortunately I cannot parse data from players_list into PHP.</p>
  
  <p>What I tried to do is next:</p>
  
  <pre><code>$url = "http://api.gametracker.rs/demo/xml/server_info/217.26.212.10:27015/";
  $xml = simplexml_load_file($url);
  foreach ($xml-&gt;children() as $xml)
  {
    $player_id    = $xml-&gt;pid;
    $player_name  = $xml-&gt;name;
    $player_score = $xml-&gt;score;
    $player_time  = $xml-&gt;time;
  }
  </code></pre>
  
  <p>The point is, I would like to auto update the table and it should look like this:</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li id="number"&gt;No.&lt;/li&gt;
    &lt;li id="nickname"&gt;Nickname&lt;/li&gt;
    &lt;li id="score"&gt;Score&lt;/li&gt;
    &lt;li id="time"&gt;Time in game&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>