The following walk through the process of importing an XML file generated by our Reverse Publishing plugin and placing an article into an InDesign document.
Create a new blank document in InDesign. If you have page dimensions, they should be set at this step.
Go to the File menu and click Import XML.
Select the XML file in the folder extracted from the zip file download.
Make sure the Show XML Import Options button is ticked as well as Merge Content.
On the import options window leave the defaults, however the Create link option is very useful in that if you export updated content from your website and re-import the XML into InDesign, all your content will update automatically.
Once the XML is imported the Structure pane will appear to the left of your document containing the Root tag. Click the small arrow to the left of the tag to reveal the contents of the XML import.
Each story element contains the others: title, byline, body, image et al. plus any tag attributes, particularly character and text styles.
Notice that these styles have been imported along with the XML elements and are now appearing in the styles panels, although each simply contains the InDesign defaults.
Before bringing in any story content, lets establish the looks of our different tags by setting the font, size, and any indentation or spacing options for each. With these styles set we can now begin importing content.
Click and drag a story onto the blank page. By default this will place all the story elements into a single text frame, including the title, byline, body and images.
The images will import at their original sizes which will often be hidden in longer stories as they may fall outside of the text frame, but we will address this shortly.
In this case the image is visible and we will need to manually scale and position it as well as any caption.
To address this we will create a new empty graphic frame of the size desired in the final layout, along with a text field to hold the caption. We will also group these two frames so that we can set the text wrapping for the full graphic.
Even though the graphics have already been imported into the main story frame, you can still drag the individual nested tags into the layout, as InDesign will remove the element from its initial placement and re-insert it into the new target.
So click on the arrow next to the story tag, and then the graphic tag to reveal the image and caption. Drag the image tag into the empty graphic frame and the caption tag into the text frame respectively. Right-click or control-click on the image to set its fitting options and adjust the size of the caption frame so that no text is cut off. You can now drag the grouped image/caption into its final position in your layout and also adjust the text wrapping settings for the entire group.
Repeat this graphic frame / caption frame combination method to place any remaining images in the story.
This is the basic process for placing an article from the imported XML into your InDesign document.