I\'ve referenced System.Xml:
using System.Xml;
Then in this line:
XmlDocument xdoc = new XmlDocument();
I
If you're using Visual Studio Code, you need to include the .NET Standard package from NuGet. You can also just include the System.Xml.XmlDocument package directly if that's all you need.