Extracting XML data to php [duplicate]
问题 This question already has answers here : How do you parse and process HTML/XML in PHP? (30 answers) Closed 6 years ago . I'm trying to extract data from XML file (http://freegeoip.net/xml/google.com). You can see the content of the file looks something like: <Response> <Ip>74.125.235.3</Ip> <CountryCode>US</CountryCode> <CountryName>United States</CountryName> <RegionCode>CA</RegionCode> <RegionName>California</RegionName> <City>Mountain View</City> <ZipCode>94043</ZipCode> <Latitude>37.4192<