Atomik Xport SE: Tutorials > Chapter 3 Tutorial 1: Basic Functions << >>

3.3 Creating XML Files

The final step is to save the contents of the preview as XML.

  1. Before exporting the XML, we need to set the correct export path. In the bottom left corner of the Preview palette, click the ‘Export As’ button.
  2. 2 You will be prompted to ‘Choose XML output file’ in a ‘Save As’ dialog.
  3. Browse to the ‘Tutorial1’ folder (located within the /Tutorials/ folder) and type the file name ‘Tutorial1.xml’ in the ‘Save As:’ box.

  1. 4 Click ‘Save’.

This has now set the export path, which should be displayed at the bottom of the XML Preview palette.

  1. 5 In the XML Preview palette, click “Export”.

Note: the Export XML Path sets the name and destination of your XML file. Once set, this is stored with your InDesign document (if you save the InDesign document after setting this). Otherwise, you can click the ‘Export As’ button to set the path. If left empty, you will be prompted for the name and path on export.

Atomik Xport has now created an XML file called ‘Tutorial1.xml’ in the Tutorial1 folder.

  1. Close the XML Preview palette.

There are two ways of viewing this XML file.

7. Open the file in your browser (Apple Safari, Microsoft Internet Explorer or Mozilla FireFox).

If you saved the XML file to the Tutorial 1 folder as instructed, you will find that it is presented as a formatted webpage in your browser:

XML output, formatted using an XSL transform by Apple Safari

This is because the XML file includes a link to an XSL template which converts it to a formatted web page. You can find out how to include a link in your XML in Section 6.8.5 of this book.

8. Next, open the file in a text editor. You will see that the raw XML is presented.

You have now created an XML file using Atomik Xport.