Search code examples
c#xmlvb6msxmlxmlnode

What is the vb6 IXMLDOMNode equivalent in C#


What is the C# equivalent of
Public Function getXMLNode() As MSXML.IXMLDOMNode?

Here is a vb6 example where IXMLDOMNode is used to get the XML from the node.

Here is a C# example where IXMLDOMNODE is used. However, when I write
public IXMLDOMNode getXMLNode()
I get the: type or namespace name IXMLDOMNODE could not be found (are you missing a using directive or an assembly reference) error.


Solution

  • You need to install the XMLDOM sdk: http://www.microsoft.com/en-us/download/details.aspx?id=4608