I would like to know how to map a .XML by Delphi Tokyo with the xml mapping tool and read in ClientDataSet
.
Using the XML Mapping Tool with Delphi 7 I can do the mapping and read the files by ClientDataSet
if OpenDialog1.Execute then
begin
XMLTransform1.SourceXmlFile:= OpenDialog1.FileName;
XMLTransform1.TransformationFile:= ExtractFilePath(ParamStr(0))+ 'transformation.xtr';
Cds_Fornecedor.XMLData:= XMLTransform1.Data;
end;
When you pass the line:
Cds_Format.XMLData: = XMLTransform1.Data;
Returns the following error:
XML PARSE ERROR:
Reason: The System can not find the specified object.
Note: I generated schema.xml and .xtr for Delphi 7 and then generated it for Delphi Tokyo