用delphi怎么读取这个xml数据 [问题点数:20分,结帖人jerryhrm] 对网页的数据不太了解,现在有这样的数据连接:https://api.speedlottery.com/data/racing/last.xml,我怎么读取这些数据转到数据库。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 获取内容可以用如下方法,解析xml就不多说了。需要引用 msxml, Variantsvar content: string; http: IXMLHTTPRequest;begin http := CoXMLHTTP60.Create(); http.open('Get', 'https://api.speedlottery.com/data/racing/last.xml', false, EmptyParam, EmptyParam); http.send(EmptyParam); content := http.responseText; //解析xml http := nil;end; sql语句出错的提示? 急:用Delphi7开发的DOS命令行程序为什么连接数据库出错? 怎样不显示combobox 里重复的数据 adoquery在执行post方法时一个异常的处理 求助:想买一APPLE的本本,12“那个但有疑虑! http://chinaour.com/?weiowen大家散分啦 通过Delphi调用chm新型帮助文件 为什么写到数据库时候,连时间也写入到数据库中??? 数据模块的问题。 字符搜索!100分! Tstringlist可以直接用在SQL中吗? Delphi
var
content: string;
http: IXMLHTTPRequest;
begin
http := CoXMLHTTP60.Create();
http.open('Get', 'https://api.speedlottery.com/data/racing/last.xml', false, EmptyParam, EmptyParam);
http.send(EmptyParam);
content := http.responseText;
//解析xml
http := nil;
end;