如何在 IDOMElement(即 Element Node) 中塞入 Element text |
尚未結案
|
Cindy Chiang
一般會員 發表:2 回覆:1 積分:0 註冊:2004-08-16 發送簡訊給我 |
請問一下高手, 我使用的是deliphi 6,
如何在 IDOMElement(即 Element Node) 中塞入 Element text (Text Node)? 以下為sample ...
var
TestDocument : IDOMDocument;
Test,AAA : IDOMElement;
begin
TestDocument := XMLTest.DOMDocument;
....
if (aqVoy.fields[ii].FieldName='AAA') then
begin
AAA := BLDocument.createElement ('AAA');
AAA.nodeValue:=aqQuery.fields[ii].AsString; => this portion will have an error
AAA.setAttribute('aaa','Hello');
Test.appendChild (AAA);
end
.....
end; 預先謝謝高手的回覆.
|
Ktop_Robot
站務副站長 發表:0 回覆:3511 積分:0 註冊:2007-04-17 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |