This is very important when using TXMLDocument.  You
CANNOT create a
TXMLDocument like this:

     myXML:=TXMLDocument.Create(nil);

It will instantiate but it will NOT work.

Here's what I did to fix it...

dm:=TDataModule.Create(nil);
myXML:=TXMLDocument.Create(dm);
try
    myXML.loadFromxml(ans.Text);
    XMLNode:=myXML.DocumentElement.ChildNodes[0];
    ...
finally
    dm.free;
end;


        

        
                
___________________________________________________________________________ 
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