XmlDocument type not found even though I've referenced System.XML?

后端 未结 5 1055
抹茶落季
抹茶落季 2021-01-19 02:49

I\'ve referenced System.Xml:

using System.Xml;

Then in this line:

XmlDocument xdoc = new XmlDocument();

I

5条回答
  •  旧巷少年郎
    2021-01-19 03:30

    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.

提交回复
热议问题