Thanks for your reply. What I need to do is make the xpath calls in Designer on my dataconnection, rather than in Workbench.
You do not need xpath .....you have access to the data dom that is loaded in the form. To access it use xfa.datasets.data. This will give you access to the root node. You can path through al nodes to get to the one you want from there. I like to see the structure I am working with so I create a multiline field on the form and use this command to see the DOM Fieldname.rawValue = xaf.datasets.data.saveXML("pretty");
This will dump the DOM into that field so you can visually see it. Then you can simply path your way to the node that you want.
If you want the value of a node use the value command and not rawValue. There is also a nodes command that will return multiple nodes as well. Play with it and see if it does what you want.