vbscript - set an XML node to a new value?

Posted on 2005-04-11
Last Modified: 2008-03-03
I'm trying to write some vbscript to change a node value in an XML file.  Here's what I have so far...

Set objXMLDoc = CreateObject("Microsoft.XMLDOM")

Set Node = objXMLDoc.documentElement.selectSingleNode("DBTarget")

I need to set the value of the above node to a new values, like "Mydb" or whatever.   How is this done?

Question by:AustinSeven
    LVL 10

    Author Comment


    Actually, I answered this for myself...

    node.text = "whatever"

    I'll ask to close this question.

    LVL 1

    Accepted Solution

    PAQd, 500 points refunded.

    Community Support Moderator

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    A short article about a problem I had getting the GPS LocationListener working.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now