Update a node in xml file
My sample xml file looks like this:
My code looks like this:
Set Doc = Sys.OleObject("Msxml2.DOMDocument.6.0")
Doc.async = False
Set Node = Doc.documentElement
Set Nodeval = Doc.selectSingleNode("//Quote/Quotesheets/Ratings/Rating/Ratingcode")
Nodeval.Text = texttoupdate
Set Doc = Nothing
Is there a way to count the no. of children for Ratings and Rating?
Can you please let me know how I can update the second child of Rating. ie, i want to update the value BBB to XXX
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.