How to create an XTR file from XML in Delphi XE4 using XML Mapper?
How to create an XTR file from XML in Delphi XE4 using XML Mapper?
Following are the steps to create an XTR file from XML in Delphi XE4 using XML Mapper:
1. Open the XML Mapper Tools from RAD Studio.
Now load an XML. In my case I am loading following simple XML:
ABC
XYZ
All the nodes will appear on the left section of XML Mapper.
2. Right click on left section and select "Select All Children" option. Transformation will be created on the middle section.
3. Right click on left section again and select "Create Datapacket from XML". You will see the generated datapacket on the right section of the XML Mapper.
4. Hit "Create and Test Transformation" button in the middle section of XML Mapper.
5. Right click on the right section and select "Clear". A popup will appear asking you "Save changes to Transformation to Datapacket?".
6. Click Yes and save that XTR file.
I got following XTR file corresponding to the above XML file:
]]>
]]>
By using Delphi XE4 RAD Studio, you can create an XTR file from the given XML file using XML Mapper. XML Mapper Tool is provided in RAD Studio XE4 under Tools -> XML Mapper.
Following are the steps to create an XTR file from XML in Delphi XE4 using XML Mapper:
1. Open the XML Mapper Tools from RAD Studio.
Now load an XML. In my case I am loading following simple XML:
All the nodes will appear on the left section of XML Mapper.
2. Right click on left section and select "Select All Children" option. Transformation will be created on the middle section.
3. Right click on left section again and select "Create Datapacket from XML". You will see the generated datapacket on the right section of the XML Mapper.
4. Hit "Create and Test Transformation" button in the middle section of XML Mapper.
5. Right click on the right section and select "Clear". A popup will appear asking you "Save changes to Transformation to Datapacket?".
6. Click Yes and save that XTR file.
I got following XTR file corresponding to the above XML file:
]]>
]]>