Skip to main content
Inspiring
August 9, 2023
Question

How to maintain a consistent XPath for each field?

  • August 9, 2023
  • 1 reply
  • 273 views

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]@4326092 

 

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

 

How can I maintain a consistent XPath for each field?


Thank you so much

 

This topic has been closed for replies.

1 reply

KaxkulAuthor
Inspiring
August 10, 2023

Any help in relation please? 😞
Thank you