use IXML in a Delphi Console Application



With XML-databinding I created a program that reads an xml-file. If I run the GUI-program (Delphi XE7) it works fine. However, I need to make it an Console Application that can be used on the commandline. I can run the program, but once I want to load the xml-file, I get an error: "Interface not supported".


The problem seems to be at:



function Loadconversation(const FileName: string): IXMLConversation;
begin
Result := LoadXMLDocument(FileName).GetDocBinding('conversation', TXMLConversation,
TargetNamespace) as IXMLConversation;
end;


Thnx. Arjan


No comments:

Post a Comment