Avatar of francoisxi
francoisxi
 asked on

possible to import xml into acroform (not xfa)?

Hi folks,

I know you can import xml into a xfa form relatively easily; however, i am using a current pdf with acroforms that I am trying to import xml into. Unfortunately, nothing happens if I select the xml file. From what I understand, all xml tags must match, case and everything. The only thing I could see that would be causing the issue is the actual form name itself.

Thanks in advance
Adobe AcrobatXML

Avatar of undefined
Last Comment
francoisxi

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Karl Heinz Kremer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
francoisxi

ASKER
I have a mild experience in Javascript and actually I think you helped me with  my other question in acrobat, so I'm aware how to use the batch sequence tools, but would probably need assistance with the actual code please
Karl Heinz Kremer

Can you post a sample of your XML? Will all your user's have the full version of Acrobat?
francoisxi

ASKER
Didn't post all of it, but here's a start.. since it's sensitive data, i made a lot of it "generic"

<?xml version="1.0" encoding="UTF-8" ?>
- <form1>
- <Professional-Report>
  <Company-Name>company</Company-Name>
  <FirstName>name</FirstName>
  <LastName>name</LastName>
  <DOB>date</DOB>
  <Surgery_Date>date</Surgery_Date>
  <Diagnosis>diagnosis</Diagnosis>
  <Procedure>procedure</Procedure>
  <Hospital>hospital</Hospital>
  <Technologist>1</Technologist>
  <Surgeon>surgeon</Surgeon>
- <OR-Time>
  <Start_Time>start</Start_Time>
  <Closing_Time>end</Closing_Time>
  </OR-Time>
Your help has saved me hundreds of hours of internet surfing.
fblack61
francoisxi

ASKER
Oh, and yes, sorry acrobat pro will be used throughout.
Karl Heinz Kremer

Can I assume that the tag <Professional-Report> contains the data that you want to add to the form, and that the tag names like Company-Name, FirstName, LastName, ... are your field names?
francoisxi

ASKER
Yes correct
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Karl Heinz Kremer

How is the OR-Time tag handled? Are there just two fields named Starting_Time and Closing_Time? If that's not the case, how are these fields named?

How familiar are you with XSLT?
francoisxi

ASKER
Sorry, changing that tag to starting and closing only (removing) so or-time won't be used.

Sorry, not familiar with XSLT :(
francoisxi

ASKER
xml migration is specific to xfa forms where as acrobat scripting (javascript) is used in acroforms
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck