0
I would like to know the correct way to map an . XML by Delphi Tokyo with xml Mapping tool and read in ClientDataSet
.
Using the XML Mapping Tool with the Delphi 7 I can do the mapping and read the files by ClientDataSet
no problem.
if OpenDialog1.Execute then
begin
XMLTransform1.SourceXmlFile:= OpenDialog1.FileName;
XMLTransform1.TransformationFile:= ExtractFilePath(ParamStr(0))+ 'transformation.xtr';
Cds_Fornecedor.XMLData:= XMLTransform1.Data;
end;
When you cross the line:
Cds_vendor.Xmldata:= Xmltransform1.Data;
Returns the following error:
XML PARSE ERROR:
Reason: The System cannot locate the specified object.
Note: I generated schema.xml and . xtr by Delphi 7 and then managed by Delphi Tokyo