开发者

ASP/VB6 to .Net 2.0

开发者 https://www.devze.com 2023-01-15 21:36 出处:网络
oXML = Server.CreateObject(\"Msxml2.DOMDocument.4.0\") oNode = oXML.createElement(\"CommonCustomerSearch\")
oXML = Server.CreateObject("Msxml2.DOMDocument.4.0")
oNode = oXML.createElement("CommonCustomerSearch")
oRoot = oXML.appendChild(o开发者_如何学PythonNode)

Looking for the equivalent for the code above in .Net 2.0. I found some sample code that seemed to be what I was looking for, but I believe it was using .NET_4 classes. I need a solution for 2.0.

Can someone post a .NET 2.0 equivalent of the above lines of code?


using System.Xml;
XmlDocument oXML = new XmlDocument();
XmlElement oNode = oXML.CreateElement("","CommonCustomerSearch","");
XmlNode oRoot = oXML.AppendChild(oNode);


using VB.NET would be something like ...

Imports System.Xml
Dim oXML as XmlDocument = new XmlDocument
Dim oNode as XmlElement = oXML.CreateElement("","CommonCustomerSearch","")
Dim oRoot as XmlNode = oXML.AppendChild(oNode)

hopefully this helps ...

0

精彩评论

暂无评论...
验证码 换一张
取 消