I\'ve referenced System.Xml:
using System.Xml;
Then in this line:
XmlDocument xdoc = new XmlDocument();
I
Are you perhaps working inside a SilverLight project?
Only time I have experienced this was when starting out in SilverLight, I did not realise that not all of the System.XML was in the Silverlight CLR version. I used System.Linq.XML instead.