Generate InDesign content using XML
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:
<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:
Person: John, 42 Person: Oscar, 39
How do I go about doing this?
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.