I am trying to parse an xml file generated by the http service of reverse geocoding. But I am getting : [Fatal Error] :-1:-1: Premature end of file. org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (Unknown Source).
Could you please help me to resolve this issue. Thanks ps: here is the xml <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>40.714224,-73.961452</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>277 Bedford Ave, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</ CountryName><AdministrativeArea><AdministrativeAreaName>NY</ AdministrativeAreaName><Locality><LocalityName>Brooklyn</ LocalityName><Thoroughfare><ThoroughfareName>277 Bedford Ave</ ThoroughfareName></Thoroughfare><PostalCode><PostalCodeNumber>11211</ PostalCodeNumber></PostalCode></Locality></AdministrativeArea></ Country></AddressDetails> <ExtendedData> <LatLonBox north="40.7173806" south="40.7110854" east="-73.9581434" west="-73.9644386" /> </ExtendedData> <Point><coordinates>-73.9612910,40.7142330,0</coordinates></Point> </Placemark> <Placemark id="p2"> <address>GRAND ST at BEDFORD AV, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>GRAND ST at BEDFORD AV</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7174686" south="40.7111734" east="-73.9580034" west="-73.9642986" /> </ExtendedData> <Point><coordinates>-73.9611510,40.7143210,0</coordinates></Point> </Placemark> <Placemark id="p3"> <address>BEDFORD AV at GRAND ST, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>BEDFORD AV at GRAND ST</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7178576" south="40.7115624" east="-73.9578504" west="-73.9641456" /> </ExtendedData> <Point><coordinates>-73.9609980,40.7147100,0</coordinates></Point> </Placemark> <Placemark id="p4"> <address>BEDFORD AV at S 2 ST, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>BEDFORD AV at S 2 ST</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7166706" south="40.7103754" east="-73.9587124" west="-73.9650076" /> </ExtendedData> <Point><coordinates>-73.9618600,40.7135230,0</coordinates></Point> </Placemark> <Placemark id="p5"> <address>DRIGGS AV at S 2 ST, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>DRIGGS AV at S 2 ST</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7156066" south="40.7093114" east="-73.9576364" west="-73.9639316" /> </ExtendedData> <Point><coordinates>-73.9607840,40.7124590,0</coordinates></Point> </Placemark> <Placemark id="p6"> <address>GRAND ST at WYTHE AV, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>GRAND ST at WYTHE AV</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7188606" south="40.7125654" east="-73.9615664" west="-73.9678616" /> </ExtendedData> <Point><coordinates>-73.9647140,40.7157130,0</coordinates></Point> </Placemark> <Placemark id="p7"> <address>McCaddin School, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</ CountryName><AdministrativeArea><AdministrativeAreaName>NY</ AdministrativeAreaName><Locality><LocalityName>Brooklyn</ LocalityName><PostalCode><PostalCodeNumber>11211</PostalCodeNumber></ PostalCode><AddressLine>McCaddin School</AddressLine></Locality></ AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.7168612" south="40.7105660" east="-73.9611574" west="-73.9674526" /> </ExtendedData> <Point><coordinates>-73.9643050,40.7137136,0</coordinates></Point> </Placemark> <Placemark id="p8"> <address>BEDFORD AV at N 3 ST, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>BEDFORD AV at N 3 ST</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7189296" south="40.7126344" east="-73.9566984" west="-73.9629936" /> </ExtendedData> <Point><coordinates>-73.9598460,40.7157820,0</coordinates></Point> </Placemark> <Placemark id="p9"> <address>DRIGGS AV at GRAND ST, Brooklyn, NY 11211, USA</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><AddressLine>DRIGGS AV at GRAND ST</AddressLine></AddressDetails> <ExtendedData> <LatLonBox north="40.7167776" south="40.7104824" east="-73.9569044" west="-73.9631996" /> </ExtendedData> <Point><coordinates>-73.9600520,40.7136300,0</coordinates></Point> </Placemark> </Response></kml> -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=.
