?
Solved

vbscript - set an XML node to a new value?

Posted on 2005-04-11
2
Medium Priority
?
795 Views
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")
objXMLDoc.load("C:\temp\params.xml")

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?

AustinSeven
0
Comment
Question by:AustinSeven
2 Comments
 
LVL 10

Author Comment

by:AustinSeven
ID: 13752059

Actually, I answered this for myself...

node.text = "whatever"

I'll ask to close this question.

AustinSeven
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 13834092
PAQd, 500 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

850 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