迷惑不解中,通过IXMLDOMDocument加载XML后如何操作?
引用
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,XMLuit, xmldom, XMLIntf, msxmldom, XMLDoc, OleCtrls,
SHDocVw, msxml;
procedure TForm1.Button15Click(Sender: TObject);
var
FXMLDoctmp :IXMLDOMDocument;
begin
FXMLDoctmp := CoDOMDocument.Create;
Fxmldoctmp.load('C:\MYxml1.xml');
以上用Fxmldoctmp加载XML后,我想得到这个XML的总子节点数,怎么办呢
Fxmldoctmp既然可以加载XML,为何不能像用DELPHI自带组件XMLDocument1加载XML一样,得到总子点数呢.
XMLDocument1.loadfromfile('C:\myxml');
也可以加载XML.这两个加载有何不同呢.
end;