<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
Currently working on an app which needs to be able to read an XML
from a website. Looking at the page at
<a class="moz-txt-link-freetext" href="http://wiki.freepascal.org/XML_Tutorial">http://wiki.freepascal.org/XML_Tutorial</a> it appears there is no way
to get XML directly from a URL. <br>
<br>
Do I need to pull the page down via :<br>
<br>
<br>
function GetWebPageContent(const Url: string): String;<br>
var fs: TStringList; HTTP: THTTPSend;<br>
begin<br>
fs := TStringList.Create;<br>
HTTP := THTTPSend.Create;<br>
try<br>
HTTP.HTTPMethod('GET', Url);<br>
fs.LoadFromStream(Http.Document);<br>
Result := fs.Text;<br>
finally<br>
fs.Free;<br>
http.Free;<br>
end;<br>
end; <br>
<br>
Or is there a way to pass an URL to ReadXMLFile?<br>
<br>
Thanks in advance!<br>
<br>
Chris<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</body>
</html>