Hello,
I am in the early phases of researching a solution to a very niche need. Basically we are taking data from an XML data file, and we want to generate a word document or PDF from a preexisting template and have the XML file fill in variable fields, the rest of the text is static. Now normally this doesn't seem like it would be too hard, but where most of the solutions we have tried are getting hung up is that sometimes we will have multiple fields of the same type, say "Product Code 1," Product Code 2," etc.
What we would like is something that, when it parses the XML file and finds data with the same tag it has encountered before, inserts a new field on a new line.
So if the XML file had three items with the product code tag, the part of the document that has the product codes would say:
Product Code 1: XXXX
Product Code 2: XXXX
Product Code 3: XXXX
If the XML file had 2 it would say:
Product Code 1: XXXX
Product Code 2: XXXX
and it would exclude these fields altogether if it didn't contain any...
Anyway, I am trying to figure out if I should develop something in VBA if possible, but since I want this to be automatic, I was thinking of doing it in C#. However, I am open to third party software as well. I know this is a weird question, so please ask for clarification if necessary!
Thanks!
http://en.wikipedia.org/wiki/Darwin_Information_Typing_Architecture
http://sourceforge.net/projects/dita-ot/#