Do not use on any
shared computer
July 24, 2008 02:19pm pdt
 
[x]
Attachment Details

creating multiple indesign files using XML data

Tags: indesign, xml, data, file
Hello Experts,

I have to create multiple id cards in Indesign using XML data. There are about 30 employees whose id cards have to be generated automatically from indesign using the XML data. The code that I have used in the XML file is,

<?xml version="1.0" ?>
<employee>
      <name>Robert</name>
      <designation>Branch Manager</designation>
      <phone>022-23937234</phone>
      <pic href="file://rob-img.jpg"></pic>
</employee>

I am able to generate individual cards after importing the XML into indesign. So for 30 employees I need to create 30 separate XML files and then import them individually into indesign and create the print file.  

But if I try to add all the 30 employees data in one single XML file and import this XML into indesign, though the XML data contains more than 1 employee data, indesign shows only the first employee's data on the page. (it does show all the elements in the structure view but I can attach only the first employee's elements to the frames on the page so only the first employees details are shown on the page)

ex xml file:

<?xml version="1.0" ?>
<employee id=1>
      <name>Robert</name>
      <designation>Branch Manager</designation>
      <phone>022-23937234</phone>
      <pic href="file://rob-img.jpg"></pic>
</employee>

<employee id=2>
      <name>Samarta</name>
      <designation>Executive</designation>
      <phone>022-23937234</phone>
      <pic href="file://sam-img.jpg"></pic>
</employee>


Is there any way of generating all the cards at one go instead of importing individual XML data of each employee separately? Can I have one single XML file with all the employees details like above and create all the cards at one go?

I have checked a few tutorials but none could solve my problem. Can anyone help me out with this?

Thanks in advance,
swiftguy
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Web Development
Question Asked By: swiftguy
Solution Provided By: R7AF
Participating Experts: 2
Solution Grade: B
Views: 40
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by R7AF

Rank: Master

Expert Comment by R7AF:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by swiftguy
Author Comment by swiftguy:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by R7AF

Rank: Master

Expert Comment by R7AF:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by grimzbane
Expert Comment by grimzbane:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by swiftguy
Author Comment by swiftguy:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by R7AF

Rank: Master

Accepted Solution by R7AF:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by swiftguy
Author Comment by swiftguy:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by swiftguy
Author Comment by swiftguy:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628