>> 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); > > I don't know if the TXMLDocument won't work if you don't assign an owner. > However, for sure you don't need to assign a > TDatamodule as the owner. If you just drop the component on a form, it > will be instantiated automatically by the VCL, > and the owner will be the form you dropped it on. >
Having no owner does work - it is how i use it all the time, eg doc : IXMLDocument; doc := TXMLDocument.Create(nil); doc.Filename := filename; doc.Active := True; Note that actually using IXMLDocument though ... Patrick _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

