Asp.net ASP/VB6到.Net 2.0

Asp.net ASP/VB6到.Net 2.0,asp.net,vb.net,vb6,asp-classic,Asp.net,Vb.net,Vb6,Asp Classic,在.NET2.0中查找上述代码的等效项。我找到了一些似乎正是我想要的示例代码,但我相信它使用的是.NET_4类。我需要一个2.0的解决方案 有人能发布与上述代码行相当的.NET2.0版本吗?使用VB.NET类似 oXML = Server.CreateObject("Msxml2.DOMDocument.4.0") oNode = oXML.createElement("CommonCustomerSearch") oRoot = oXML.appendChild(oNode) using S

在.NET2.0中查找上述代码的等效项。我找到了一些似乎正是我想要的示例代码,但我相信它使用的是.NET_4类。我需要一个2.0的解决方案


有人能发布与上述代码行相当的.NET2.0版本吗?

使用VB.NET类似

oXML = Server.CreateObject("Msxml2.DOMDocument.4.0")
oNode = oXML.createElement("CommonCustomerSearch")
oRoot = oXML.appendChild(oNode)
using System.Xml;
XmlDocument oXML = new XmlDocument();
XmlElement oNode = oXML.CreateElement("","CommonCustomerSearch","");
XmlNode oRoot = oXML.AppendChild(oNode);

希望这有助于

使用VB.NET就像

using System.Xml;
XmlDocument oXML = new XmlDocument();
XmlElement oNode = oXML.CreateElement("","CommonCustomerSearch","");
XmlNode oRoot = oXML.AppendChild(oNode);
希望这有助于