Hello
You can use the translate function to solve your issue. The line above will look like this
XDocument.DOM.selectSingleNode(''//dfs:myFields/dfs:dataFields/d:ReportInfo/@Login'').text= translate(objWscript.UserName, ''QWERTYUIOPLKJHGFDSAZXCVBNM'', ''qwertyuioplkjhgfdsazxcvbnm'');
Shanthi
InfoPathDev India