Generate InDesign content using XML


Question

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:

XML

<stuff>
    <person>
        <name>John</name><age>42</age>
    </person>
    <person>
        <name>Oscar</name><age>39</age>
    </person>
</stuff>

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

InDesign

Person: John, 42
Person: Oscar, 39

How do I go about doing this?

1
3
11/17/2011 10:45:00 AM

Accepted Answer

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 InDesignSecrets.com (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.

2
11/16/2011 9:13:00 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
^