beautypg.com

Importing xml, Xml import and layout methods – Adobe InDesign CS4 User Manual

Page 564

background image

556

USING INDESIGN CS4

XML

For more information on using XML in K4 or InCopy workflows, contact your system administrator.

Importing XML

XML import and layout methods

After you import XML data, the imported content appears as elements (the basic building blocks of XML) in the
Structure pane. InDesign doesn’t create new frames or pages when you import XML.

Append or merge?
You can import XML using one of two modes: append or merge. The method you choose depends on your workflow
(manual or automated), how you want to handle existing content in your document, and whether you want advanced
options for handling the imported data.

Append mode

When you append imported content, the existing structure and content of the document are left as is;

the new XML content is placed on the bottom of the Structure pane, in the form of elements.

Merge mode

When you merge imported content, InDesign compares the incoming XML with the structure and

names of elements already in your document. If the elements match, imported data replaces existing document
content, and is merged into correctly tagged frames (or placeholders) in the layout. (Elements for which InDesign can’t
find a matching name and hierarchy rank are placed on the Structure pane so that you can place them manually.)
Merge mode not only makes automated layout possible, it provides more advanced import options, including the
ability to filter incoming text and clone elements for repeating data.

Content layout
After importing XML content, your next step is to place it in your document. You can place content manually,
automatically, or by using scripting. The method you choose depends on the content you’re importing, your
document’s layout, and your workflow process.

Place content manually

With the manual method, you drag elements from the Structure pane onto the pages of your

document or into frames. This method requires little setup or planning. Use this method if the type of content you
import varies or if you acquire content from multiple sources.

Updated 18 June 2009