Your XPaths are invalid. XPath doesn't support syntax such as sox

roperty["PropertyA"]
I'm assuming the node sox

roperty holds a value and that value is "PropertyA". Property also has an attribute named "value".
If this is the case, then you would use something like:
sox

roperty[. = "PropertyA"]/@value
What this is saying is: Find the node named sox

roperty whose value is "PropertyA" and get its attribute named value.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
Hi Greg,
The fields are in different rows.
Here is what I am trying to do. The repeating table gets the data(rows) from
a group called "property". So for example If I represent them as Xpath
expression they are as follows.
.../sox

roperty["PropertyA"]/@value
.../sox

roperty["PropertyB"]/@value
(@Value is the attribute)
PropertyA and PopertyB are in separate rows. I want to put a data validation
on the text box that is bounded to PropertyB where I need to compare the
value(@value) of PropertyA with PropertyB.
Thanks for the prompt reply.
Tushar
Greg Collins said:
Are the fields within the same row of the repeating table? Or are you trying to compare fields from different rows?
If they are on the same row it should be straight forward. If they are on different rows, that can be very complex depending on what you want to do.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
Hi Guys,
I have Repeate Table section Called Properties and it has mulitple Property
fields in it. How can I compare one field to another for Data validation.
Example: Property A (field) with Property B(field).
Any tips. So far I have tried every thing in the Data validation dialog box
including XPath expression, but nothing has worked.