Hi,
Check out this link,
http://www.infopathdev.com/forums/thread/14105.aspx
You can try below the xPat once if you set the property
/dfs:myFields/dfs:dataFields/d:Test_Plan/@NT_User_Name
Hope this Helps you

Signature
Shiva
http://www.ggktech.com
> Hi, I am not able to crack the xpath for my fields, I followed everything
> what ever is discussed in this link
[quoted text clipped - 18 lines]
> non local form using regform utility it would be gr8... regform gives me an
> error if I register a network location form.
Tam - 13 Aug 2007 19:22 GMT
I tried the following code.. it gives me error Type Mismatch DataObjects.. I
dont know the exact format of the function call for DataObejcts... I am using
the code in VBScript... can you help me identify this error as I am very new
to Infopath..
Sub XDocument_OnLoad(eventObj)
DataObjects("My connection").Query()
DataObjects("My connection").DOM.setProperty "SelectionNamespaces",
"xmlns:=""http://schemas.microsoft.com/office/infopath/2003/ado/queryFields""
xmlns:d=""http://schemas.microsoft.com/office/infopath/2003/ado/dataFields""
xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"""
XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Test_Plan/@NT_User_Name").text = NTUserName()
End Sub
> Hi,
>
[quoted text clipped - 29 lines]
> > non local form using regform utility it would be gr8... regform gives me an
> > error if I register a network location form.
S.Y.M. Wong-A-Ton - 17 Aug 2007 01:54 GMT
Try using XDocument.DataObjects instead of just DataObjects.
---
S.Y.M. Wong-A-Ton
> I tried the following code.. it gives me error Type Mismatch DataObjects.. I
> dont know the exact format of the function call for DataObejcts... I am using
[quoted text clipped - 43 lines]
> > > non local form using regform utility it would be gr8... regform gives me an
> > > error if I register a network location form.