Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
7

How to maintain a consistent XPath for each field?

Participant ,
Aug 09, 2023 Aug 09, 2023

More help, please 🙂
While working with the generated XFDF, I intended to extract the XPath for each field. However, I realized that the unique path for each field might be affected by the number of fields already filled.

For instance:

 

Initially, the XPath for a field named "3 activities" appears as:
/xfdf[@xmlns="http://ns.adobe.com/xfdf/"]/fields/field[6]/field[4]//field[7]@name 

 

However, when I fill another field, the XPath changes to:
/xfdf[@xmlns="http://ns.adobe.com/xfdf/"]/fields/field[6]/field[4]//field[11]@name  

 

How can I maintain a consistent XPath for each field?


Thank you so much

 

TOPICS
Edit and convert PDFs , General troubleshooting , How to , JavaScript , PDF , PDF forms
227
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 09, 2023 Aug 09, 2023
LATEST

Any help in relation please? 😞
Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines