Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating xml nodes?

Status
Not open for further replies.

Dudeamis

Programmer
Sep 4, 2008
1
US
Is there a way to update xml nodes with vbscript? say I have a javascript variable with a value of 100, and I want it to replace the text of a node in an xml file.
 
Why should it always us to image up an environment containing all the elements to show you something that may not coincide with your environment?

>Is there a way to update xml nodes with vbscript?
Short answer. Create an instance of DOMDocument object. Use .load method the xml, use xpath to get to the reference of the node. Use .text to replace the value. Use .save to save a hardcopy of the xml updated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top