Hi James,
XDocument is only for Script. In VS 2005 it is XMLDocument and not XDocument
The Infopath Object Model is Changed for VS 2005

Signature
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
> Hi
>
[quoted text clipped - 5 lines]
>
> Anyone care to help me out here?
James Laker - 09 Jul 2007 15:50 GMT
Thanx for the reply Kevin... I've had enough of this for one day... Will test
tomorrow.
> Hi James,
>
[quoted text clipped - 10 lines]
> >
> > Anyone care to help me out here?