title: issues using preg_match to get data from xml file
body: <p>I'm trying to use an external site's API to get users IP info (country, city, etc etc) with <code>file_get_contents</code>:</p>
  <pre><code>$ht=&quot;http://api.hostip.info/?ip=99.99.99.99&quot;;//example ip address&lt;&lt;
  $com = file_get_contents(&quot;$ht&quot;);
  
  preg_match('/&lt;countryName&gt;(.*)&lt;\/countryName&gt;/',$com,$oun);
  preg_match('/&lt;gml:name&gt;(.*)&lt;\/gml:name&gt;/',$com,$it);
  $country=$oun[1];
  $city=$it[1];
  echo $country, $city;
  </code></pre>
  <p>I can get the country, IP and other things with that code, just not the city...</p>
  <p>I think the issue lies with the
  <strong>:</strong></p>
  <p>in <code>gml:name</code>....</p>
  <p>Here is the XML I'm trying to get the data from:</p>
  <p><a href="http://api.hostip.info/" rel="nofollow noreferrer">http://api.hostip.info/</a></p>