cancel
Showing results for 
Search instead for 
Did you mean: 

Parse xdp/xfa file

Former Member
0 Kudos

Hi everyone,

I have to parse an XDP/XFA file in Java.

Two questions:

  • Can I use a standard xml parser?

  • Any advice on the parser to use in terms of performance?

Thanks in advance for your responses.

Regards,

Mirco

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

Hello, would you tell us, why do you have to do this?

Maybe there are other ways how to achieve what you need to do.

Cheers Otto

Former Member
0 Kudos

Hi Otto,

thanks for your response.

I describe you ourscenario in a simplified way hoping that it is a simple way.

Its an online scenario - WDJ (CE 7.11)+SAP IFbA. My form is a legacy form designed with Adobe Lifecycle 8.1.

When the user starts the application select the type of document he wants create (using checkboxes). This selection changes the layout dynamically using javascript. Then the user digitally signs the document.

If I validate the signature, the signature panel I get the signature is valid but I have a series of warnings concerning the layout elements that have been deleted or whose properties have changed (by the script)

How can we avoid these warnings? Do we create a set of templates without scripts corresponding to each type of document? We would like avoid it because the possible combinations of the documents is very high.

So, our initial idea is to have a copy of the document without script for changing the xml tree dynamically depending on the presence or absence of values in the context WDJ. To do this we need a parser.

Do you have any advice for us? Any kind of help may be very important at this time.

Thanks for your attention and your time.

Regards,

Mirco

OttoGold
Active Contributor
0 Kudos

Hello,

dynamic changes of the form/ template are something common. But the usability of this "approach" depends on the number of "sub-templates" in the main template. I have seen "solutions" where guys wanted to spare some licenses, so they created 10 separated forms and then merge them into one not to pay 10 but just one license. That of course is "crazy" because once you lose the guy who imlpemented this form, nobody else will be ale to change it, enahnce it, improve it... Then I would suggest to use 10 separate templates, of course.

But if the form has like 3 parts and every part has like 3 variants, then the dynamic change of the layout is ok, maintainable etc.

Do not , never ever manipulate the source XML tree. This is not how things work. If that would be easier for you, create the parts of your form as separated forms in the development system and then try to merge them together (try to build some "building blocks" to avoid copying the code or repeating same parts of the form/ interface etc.).

Use Java script or formCalc to manipulate the look and feel of the form, not the direct "template injection". I am not sure if tht would not be against some rules or licensing...

Cheers Otto

Former Member
0 Kudos

Hello Otto,

thanks for your comprehensive answer and sorry for the delay of my answer.

we are evaluating how to proceed.

Cheers,

Mirco