Preview XML Data in an Adobe Acrobat PDF Form Field
Question details
The user needs an XML value to appear in a PDF form field when the form is previewed.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A form field should display a value from an XML document containing nested elements.
- Observed behavior
- Entering an XML tag name in the text field does not display its value, and no data connection appears to be configured.
Check whether the PDF is a standard AcroForm or an XFA form designed in Adobe LiveCycle Designer. Inspect the XML hierarchy and identify the full path to the value you want to display.
Import compatible form data into a standard Acrobat form
Use this method for an AcroForm when you can provide data in a format and structure that Acrobat recognizes.
Typing an XML tag into a field does not create a data binding. A standard AcroForm needs imported data that identifies its fields; arbitrary nested XML may need to be converted to a compatible form-data structure first.
Open the PDF in Acrobat, select Prepare a form, and open the text field's Properties to check its name.
Compare the field name with the identifiers in your form-data file. If the source XML is a separate nested business document, convert or map its value to the corresponding Acrobat field name.
In Prepare a form, open the More menu and choose Import data. Select a supported form-data file, such as FDF or XFDF, and open it.
Select Preview in Prepare a form and verify that the value appears in the intended field.

Bind an XFA field to XML in Adobe LiveCycle Designer
Use this approach when the form was designed as an XFA form and you have access to its Designer source.
Edit PDF Forms and Office Files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office files. It can help you fill and edit PDFs, though it does not configure Adobe Acrobat or XFA XML data bindings.

Frequently Asked Questions
Why does the XML tag name not show the value?
A tag entered into a PDF text field is treated as field content, not a binding instruction. Import compatible form data for an AcroForm or configure a data binding in the XFA form's design tool.
Where can I import form data in Acrobat?
Open the PDF in Acrobat, select Prepare a form, and look for Import data under the More menu. The available menu labels can vary by Acrobat version.
Can I import any nested XML document directly into an AcroForm?
Not necessarily. The data must use a structure Acrobat can map to the form's field names. You may need to convert your XML to a compatible form-data file such as FDF or XFDF.
How do I test an XFA binding with sample data?
In Adobe LiveCycle Designer, select the sample XML file in the form's preview data settings, then open Preview PDF. If the field is blank, check the field's Binding tab and the XML node hierarchy.




