I am trying to save and load an xml file from my hard disk drive by calling the above code
TS.SaveToFile(Def_Response_XmlFile, TEncoding.UTF8);
XMLResponseDoc := LoadResponseDoc(Def_Response_XmlFile);
But when I called the following function
function LoadResponseDoc(const FileName: string): IXMLResponseDoc;
begin
ShowMessage('' +FileName);
ShowMessage('' +TXMLResponseDoc);
ShowMessage('' +TargetNamespace);
Result := LoadXMLDocument(FileName).GetDocBinding('ResponseDoc', TXMLResponseDoc, TargetNamespace) as IXMLResponseDoc;
ShowMessage('arrive here');
end;
I took as response the mentioned error.Any ideas what am I doing wrong?