Trying to grab XML file after Google Maps Query
<p>I'm trying to grab the XML file results after using a Google Maps API query, but my Delphi app is throwing a "IOHandler value is not valid." error.  The "IdHTTP1.Get" line appears to be the culprit, but why?  </p>

<p>My goal is to get the latitude and longitude coordinates from the results of the query and post them to a database.  Here's my code that's producing the error.</p>

<pre><code> procedure TViewMaps.GetXMLBtnClick(Sender: TObject);
var
    lat, lng: String;
    xml: IXMLDocument;
    s: TStream;
begin
  // Create XML File to hard disk
  s := TFileStream.Create('mydata.xml', fmCreate);
    try
      IdHTTP1.Get('https://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&amp;key=MyKey',s);
      xml := TXMLDocument.Create(nil);
             {xml.LoadFromXML(sName),  at: xml.ChildNodes.FindNode = ('result') ChildNodes.FindNode ('formatted_address . ');  }

      // Load XML file for data display
      XMLDocument1.LoadFromFile('mydata.xml');
      XMLDocument1.Active := True;

        //lat := XMLDocument1.DocumentElement;

    finally
      XMLDocument1.Active := False;
      s.Free;
    end;
  end;
</code></pre>