

IdHTTP1.Get(''+StringReplace(edtCep.Text,'-','',)+'&formato=xml',Īlso, you cannot pass a URL to a LoadFromFile() method. It would be better to use the overloaded version of TIdHTTP.Get() that fillsĪ TStream with the raw downloaded data, and then use TXMLDocument.LoadFromStream() XML should always be treated as raw encoded bytes, so The downloaded data and convert it to UTF-16, but does not update the XML The overloaded version of TIdHTTP.Get() that returns a String will decode On Windows, TXMLDocument uses MSXML by default, andīTW, you really should not use a String for downloading/loading XML data. You likely did not call CoInitialize/Ex() in the thread that is attempting Įdited by: Benilton Ramos Santos on 3:57 PM Someone give me a help, a lot of things still do not understand the intraweb. I use this noes delphi applications, I wanted to enjoy the intrweb XMLDocument1.LoadFromFile(''+StringReplace(edtCep.Text,'-','',)+'&formato=xml') ĮdtCep.Text := ĮdtUF.Text := ĮdtCidade.Text := ĮdtBairro.Text := ĮdtTipoLog.Text := Įdtend.Text := ĮdtResultado.Text := ĮdtResultadoTXT.Text := With the following code to search for addresses Good evening I'm using in my application :
