Thank you very much for your reply, Greg. I appreciate your help, but...
I inserted the code you provided, and I'm still getting the same results as I was before - only the first row in the repeating table is being compared.
Here's the new SetUserRole method:
public void SetUserRole(string UserAlias)
{
IXMLDOMNode UserNode = ConfigForm.selectSingleNode("/my:Config/my:Administrators/my:Administrator/my:Admin-Alias[translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = '" + UserAlias + "']");
if(UserNode != null)
thisXDocument.Role = "Admin";
else
thisXDocument.Role = "Requestor";
}
Here's a sample of my data:
<my:Config xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-08-17T18:16:54" xml:lang="en-us">
<my:Administrators>
<my:Administrator>
<my:Admin-FullName>DC Ross</my:Admin-FullName>
<my:Admin-Alias>dcross</my:Admin-Alias>
</my:Administrator>
<my:Administrator>
<my:Admin-FullName>John Smith</my:Admin-FullName>
<my:Admin-Alias>jsmith</my:Admin-Alias>
</my:Administrator>
</my:Administrators>
</my:Config>
If John Smith were to view the form, he would be assigned the role of "Requestor", not "Admin".
Thank you in advance,
-DC Ross