鉴于下面的 XML 片段,我如何获取 XML 属性的值TEXT
?
<POPULARITY URL="example.com" SOURCE="panel" TEXT="27503270" />
消极的...
我的代码...:
procedure TForm1.Button1Click(Sender: TObject);
var i:integer;
begin
if kontrol=0 then
begin
XMLDocument1.Active:=false;
XMLDocument1.FileName:='http://data.alexa.com/data?cli=10&dat=snbamz&url=aliatabak.com';
XMLDocument1.Active:=true;
end;
i:=1;
baslangic:=XMLDocument1.DocumentElement.ChildNodes.FindNode('SD');
repeat
isim:=baslangic.ChildNodes.Nodes['??????'].Text;
edit1.Text:=isim;
i:=i+1;
baslangic:=baslangic.NextSibling;
Until baslangic=nil;
end;