Easy way to get XPath - InfoPath Dev
in

InfoPath Dev

Easy way to get XPath

Last post 01-09-2007 03:54 PM by snyderjd. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-07-2006 07:56 AM

    Easy way to get XPath

    Is there an easy way to copy and paste long xpath nested statements into selectNodes or other code statements. I have IP 2003 and VS.net 2003.
    Dean
    Charlotte, NC
  • 12-07-2006 05:03 PM In reply to

    Not sure I fully understand your question. The "nested" part is throwing me off.

    In IP2007, one of my feature requests made it into the product, which allows you to right-click a node in the data source task pane, and copy the full xpath for that node to the clipboard. This feature, unfortunately, does not exist for IP2003.

    One thing I sometimes do, is to go into a secondary data source field, create a temporary rule where I can point to the field in another data source that I want the XPath for, then set it to reveal the entire XPath, which allows me to select it and copy it to the clipboard. Then I just cancel the rule. Maybe this will help.
  • 01-09-2007 03:54 PM In reply to

    In 2003, I think the easiest way to get your xpath is to open the form (not design mode) and export all tables, list, etc into a spreadsheet. each column will be the field name and xpath in paranethesis...
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.