title: Parsing GML with PHP
body: <p>I'm attempting to parse the XML output of a GeoIP API with PHP:</p>
  
  <pre><code>&lt;HostipLookupResultSet version="1.0.1" xsi:noNamespaceSchemaLocation="http://www.hostip.info/api/hostip-1.0.1.xsd"&gt;
  &lt;gml:description&gt;This is the Hostip Lookup Service&lt;/gml:description&gt;
  &lt;gml:name&gt;hostip&lt;/gml:name&gt;
  −
  &lt;gml:boundedBy&gt;
  &lt;gml:Null&gt;inapplicable&lt;/gml:Null&gt;
  &lt;/gml:boundedBy&gt;
  −
  &lt;gml:featureMember&gt;
  −
  &lt;Hostip&gt;
  &lt;ip&gt;111.69.232.180&lt;/ip&gt;
  &lt;gml:name&gt;(Unknown City?)&lt;/gml:name&gt;
  &lt;countryName&gt;(Unknown Country?)&lt;/countryName&gt;
  &lt;countryAbbrev&gt;XX&lt;/countryAbbrev&gt;
  &lt;!-- Co-ordinates are unavailable --&gt;
  &lt;/Hostip&gt;
  &lt;/gml:featureMember&gt;
  &lt;/HostipLookupResultSet&gt;
  </code></pre>
  
  <p>As a complete XML neophyte, I don;t know how to handle the extra GML components with the simplexml_load_file PHP fuynction I've been using. How could I extract the city name from this XML using simplexml_load_file?</p>