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

后端 未结 5 1053
抹茶落季
抹茶落季 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:42

    I know that the question is already answered, but I want to add the solution for the very similar problem that I had, which might help others:

    In my case it was a simple misspelling, well, not even that, it was an uppercase-lowercase-fault:
    There are 2 classes: XMLDocument (from msxml.h) and XmlDocument (from System.Xml).
    Make sure that you're not mixing them up! ;-)

提交回复
热议问题