http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway+Mountain+View+CA+USA?&output=xml&key= I want the output to be stored, and not the xml code generate from it??
Check the PHP XML Parser Functions. Theres also a lot of pre-made classes you can use which will save you time. Google "xml parse php"
thanks for the parser, but it giving me another error <?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://earth.google.com/kml/2.0"><Response><name>1600 Amphitheatre Parkway, Mountain View, CA</name><Status><code>200</code><request>geocode</request></Status><Placemark id="p1"><address>1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA</address><AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Santa Clara</SubAdministrativeAreaName><Locality><LocalityName>Mountain View</LocalityName><Thoroughfare><ThoroughfareName>1600 Amphitheatre Pkwy</ThoroughfareName></Thoroughfare><PostalCode><PostalCodeNumber>94043</PostalCodeNumber></PostalCode></Locality></SubAdministrativeArea></AdministrativeArea></Country></AddressDetails><Point><coordinates>-122.081783,37.423111,0</coordinates></Point></Placemark></Response></kml> PHP: now i save this file and try to parse it with any parser, but it still gives me an error, but if i save this file as utf-8 , i parses it properly.