Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1055453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:33:51+00:00 2026-05-16T17:33:51+00:00

oXML = Server.CreateObject(Msxml2.DOMDocument.4.0) oNode = oXML.createElement(CommonCustomerSearch) can someone explain what the lines of code

  • 0
oXML = Server.CreateObject("Msxml2.DOMDocument.4.0")

oNode = oXML.createElement("CommonCustomerSearch")

can someone explain what the lines of code above are doing? i’m more interested in the first line as the method it is written in exits when it hits that line, so apparently the variable oXML isn’t being set. i know that oXML is supposed to be set to some kind of COM object but can you explain the “Msxml2.DOMDocument.4.0” part a bit more? what is that, where is that, and what will it look like in .NET (this code is a classic asp)? i don’t know what the second line of code above is either but the method never even reaches it so if you have any ideas about what that is doing would be great too. thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:33:52+00:00Added an answer on May 16, 2026 at 5:33 pm

    That classic ASP code is making use of the XML DOM library. The first line (if properly coded with the set keyword) creates an XML document in memory. The second line creates an XML node named CommonCustomerSearch.

    .NET Framework 3.5+

    If you want to move to .NET 3.5 or later, you could do the same thing with System.Linq.Xml

    var xmlDoc = new XDocument(new XElement("CommonCustomerSearch"));
    

    You can read the Getting Started Guide for LINQ to XML for more info.

    .NET Framework 2.0

    It sounds like you’re limited to .NET 2.0, so you can use System.Xml to accomplish this in a less sexy way.

    XmlDocument doc = new XmlDocument();
    doc.LoadXml("<CommonCustomerSearch/>");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

oXML = Server.CreateObject(Msxml2.DOMDocument.4.0) oNode = oXML.createElement(CommonCustomerSearch) oRoot = oXML.appendChild(oNode) Looking for the equivalent for
I have this code that loads an xml file using javascript: function getXmlDocument(sFile) {
I am writing out statistical results in SPSS with code like OMS / SELECT
I think until v5 of Google Chrome the below code worked. Now in the
I would like to know, if anyone can help how to get NODE name
Hey, I have been trying to switch my code from using an ie object
As you know doing Cross Domain XMLHTTP requests is not allowed for security reasons
From my JAXB model I can output this xml <metadata xmlns=http://musicbrainz.org/ns/mmd-2.0# xmlns:ext=http://musicbrainz.org/ns/ext#-2.0> <work-list> <work
System.Xml.XmlDocument.OuterXml() will generate (for example) <list id=myBooks> <book id=123 name=XML for muppets /> <book
I am getting this error while running a hadoop pipes program. The program compiles

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.