I\'ve referenced System.Xml:
using System.Xml;
Then in this line:
XmlDocument xdoc = new XmlDocument();
I
I know this is a very old question but the problem persists nowadays. I'm on a Xamarin.Forms project and the PCL project targets a profile (Profile111) that doesn't support XmlDocument. I had to use System.Xml.Linq.XDocument. My projects targets WindowsPhone and XmlDocument doesn't exist on this target.