用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; 呵呵呵!帮帮忙! 菜鸟问题 FORM的关闭 Delphi的字符函数是不是有BUG啊???? 兄弟们的公司里有自己的类库或编程框架吗?来说说 自定以大小打印问题,(98,win2000)都可以用 intraweb中报表打印如何实现 如何获得本地SQL SERVER服务名? 问一个接口问题? 请教关于一段程序的问题 回车和换行分别是什么ascii? 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;