Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to generate some content in InDesign CS5 by importing XML data, but I can't figure out how to do it. Here's what I have:



And here's what I want the result to look like:


Person: John, 42
Person: Oscar, 39

How do I go about doing this?

share|improve this question
Which version? (cs3, cs4 etc) – horatio Nov 16 '11 at 20:10
I'm using InDesign CS5. – Joe Nov 16 '11 at 20:13
up vote 2 down vote accepted

You have to set up the structure in InDesign first, before you import the XML data. The procedure is a bit complex for an answer here, but you can find a good introduction here on Adobe TV.

If you're going to be getting into XML much, I highly recommend you spend time on (do a search on XML) and that you get and read James Maivald's "A Designer's Guide to Adobe InDesign and XML", not only the best introduction to XML for InDesign users, but also an excellent reference to keep on hand.

share|improve this answer

You can do this with data merge, but as far as I know, you must use CSV or tab delimited format, not XML.

The data merge palette is under the window->automation menu. You specify the data file, and then you can drag data field markers into your text boxes and style appropriately, then merge the files. Multiple records in a single document are not possible AFAIK when you are using a spread layout.

CS4 docs are here: ( )

and a real-world tutorial is here:

( )

share|improve this answer

Since you've got "Person: " and colons added to your original data, I'd go with creating apropriate XSLT to transform your XML before it'll be imported to InDy (there's an option to treat XML with selected XSLT when importing XML). Other than that it's just simple importing XML into InDy and mapping specific elements to specific styles.

To sum things up: use XSLT transformation while importing XML.

That's not the only way, but I'd go with that since you'll going to need XSLT knowledge (even basic) if you plan to use XML extensively in your workflow. I know XSLT is not a convenient and straightforward technology (could be designed more with people in mind) but it works.

By the way: to add "Person: " prefix before each paragraph, you could set your paragraph to be "bulleted" list with bullet set to empty character and "Text before" set to "Person: ". Try this :).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.