我正在尝试 url 的 XML,但它似乎不起作用。只有当我从本地文件中读取它时它才有效。
我要阅读的网页是:http ://na.lolesports.com/api/standings?tournament=7
非常感谢您的帮助
Set xmlObject = CreateObject("Microsoft.XMLDOM")
'urlPath = "na.lolesports.com/api/standings?tournament=7/standings.xml"
'urlPath = "na.lolesports.com/api/standings?tournament=7"
'urlPath = "C:\Trio Scripts\standings.xml"
xmlObject.load(urlPath)
if (not isNull(xmlObject)) then
set nodes = xmlObject.selectNodes("//team_title")
for i = 0 to (nodes.length - 1)
msgbox(nodes(i).nodeName & " - " & nodes(i).text)
next
end if