Is there a way to use XMLDocument in a class in the Main csproj?

CiaranCrashSECiaranCrashSE GBMember

I am trying to convert a string into Xml, I am having problems in that i cannot use

XmlDocument doc = new XmlDocument();

in a class within the main csproj.

System.Xml is referenced automatically in the project and I am able to use XmlReader in a class within the main csproj, however when i try to use XmlDocument it says this type or namespace could not be found.

XmlDocument works perfectly fine in a class within Android csproj but I am wondering is there any way for it to work in the main csproj? I am unsure of why it does not work in main csproj

I am using .NET Framework Version 4.6

Tagged:
Sign In or Register to comment.