Expand my Community achievements bar.

Multiple XML import into one PDF

Avatar

Former Community Member

I want to import multiple xml files into my form at one time resulting in one pdf with each page repeating with each set of data.  Is there a way to do this?.

5 Replies

Avatar

Level 6

Hi,

You can use loadXML method to load necessary XMLs, after that you have parse it, take data, and set it to correspondent fields.

You can check this links, maybe it will be helpfull:

http://forums.adobe.com/thread/333519

http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/wwhelp/wwhimpl/common/html/wwhelp.htm?conte...

BR,

Paul Butenko

Avatar

Former Community Member

Paul, thank you.  I am not sure if the loadXML will help me. An an example of what I am trying to achieve is as follows.  10 different users are filling in a one page form which is submitted as XML files.  I need to combine the 10 files into one so that when I import it into the form on my end, it produces 10 pages where each page contains the data from each XML file. In the import form, I set the subform propery in the binding tab to "repeat subform for each data item".  What I think I need is a way to merge or combine (not sure what to call it) the multiple xml files into one.

Avatar

Level 6

Hi,

In this case, users have to submit form to some servlet or service, wich will parse and combine XMLs into one large XML file with necessary style. After that you will be able to put this file into your form. Anyway you should have some server part, it could be Java servlet or some LC service.

Paul Butenko

Avatar

Former Community Member

Is there a particular routine or program available to combine the xmls correctly?

Avatar

Level 6

Hi,

I think no, you have to write youre own parser or something.

If you will use Java you can use JAXB for example.

BR,

Paul Butenko