Hi patrick,
I am not able to set the exact function like this "name[username=CurrentUser]". Here in this function i am selecting all the fields from the XML data source as explained in the link that i have posted. But it was giving an error like "xdXDocument:GetDOM("Impo")/roles/role/my:CurrentUser" does not point to a valid location path of a field or group.
In the above error "Impo" is my XML data source name. "CurrentUser" is the field to which i had set up the "username()" function. The problem is with the "CunrrentRole" field to which i need to set the function like "name[username=CurrentUser]".
Here is my sample XML data source.
<?xml version="1.0" encoding="utf-8"?>
<roles>
<role>
<name>Sales</name>
<users>
<username>john</username>
<username>jane</username>
</users>
</role>
<role>
<name>Management</name>
<users>
<username>bill</username>
<username>abby</username>
</users>
</role>
<role>
…
</role>
</roles>