thnx
function ReadXMLIni(_xmlfile : string) : boolean;
var
i : integer;
begin
try
xIniDoc.LoadFromFile(_xmlfile);
xIniDoc.Active := true;
xIniRoot := xIniDoc.DocumentElement; --> Access violation :(
xIniList := xIniRoot.ChildNodes;
for i := 0 to xIniList.Count-1 do
begin
writeln(xIniList.Nodes[i].NodeName+ ' = ' + xIniList.Nodes[i].text);
end;
except
on e: exception do jLog(0, e.Message);
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
Var
tDoc:TXMLDocument;
begin
tDoc := TXMLDocument.Create(nil);
tDoc.LoadFromXML('<a/>');
tDoc.DocumentElement; // <-- EAccessViolation
end;
Any light that could be shed on this would be much appreciated!
Thanks,
-Ben
Var
tDoc:IXMLDocument;
begin
tDoc := TXMLDocument.Create(....
bdamm-...@dammfine.com (Ben Damm) wrote in message news:<6448d1e6.03082...@posting.google.com>...
Var
tDoc:IXMLDocument;
begin
tDoc := TXMLDocument.Create(....
bdamm-...@dammfine.com (Ben Damm) wrote in message news:<6448d1e6.03082...@posting.google.com>...