Unable to instantiate an XmlDocument in C++/CLI RRS feed

  • Question

  • Okay, I think I'm going crazy...

    I'm trying to create a new XmlDocument in C++/CLI. Here's what I have:

    using namespace System;  
    using namespace System::IO;  
    using namespace System::Xml;  
    public ref class myClass  
        void myFunction()  
            XmlDocument^ xmlDoc = gcnew XmlDocument();  

    Visual Studio is giving me a compile error:

        error C2065: 'XmlDocument' : undeclared identifier

    Any ideas? I'm using the System::Xml namespace, so I don't know why it wouldn't know what an XmlDocument is.

    Thanks =)

    Tuesday, November 11, 2008 3:12 PM