• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 797
  • Last Modified:

vbscript - set an XML node to a new value?

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
AustinSeven
Asked:
AustinSeven
1 Solution
 
AustinSevenAuthor Commented:

Actually, I answered this for myself...

node.text = "whatever"

I'll ask to close this question.

AustinSeven
0
 
GhostModCommented:
PAQd, 500 points refunded.

GhostMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now