Hi
this is my code, I have implemented the sample of the
help of borland 2005, but when I try to read from
xmlDocRead (in BorlandStock) an EAccessViolation
excpetion was thrown.
can someone help me

var
Price: string;
xmlDocRead: IXMLDocument;
BorlandStock: IXMLNode;
b: Boolean;
begin
CoInitialize(nil);
xmlDocRead:= IXMLDocument.Create(nil);
xmlDocRead.LoadFromFile('stock.xml');
xmlDocRead.Active:=True;
b:=xmlDocRead.IsEmptyDoc;//to test xmlDocRead
xmlDocRead.SaveToFile('ee.xml');//to test xmlDocRead
try
BorlandStock :=
xmlDocRead.DocumentElement.ChildNodes[0];
Price := BorlandStock.ChildNodes['price'].Text;


        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to