Hello all
Wondering if someone out there can help me with a problem I am having. I have an xml file that contains a tag called <SERIESNUMBER>. Within that tag there is a number. I am trying to write a script to change that number. I have been unsuccessful in finding any information describing this. I wrote the following to extract and show the tag but that is about as far as I've gotten.
Set objXMLDoc = CreateObject("Microsoft.XMLDOM") objXMLDoc.async = False objXMLDoc.load("c:tmpsettings.xml")
Set NodeList = objXMLDoc.documentElement.selectNodes("SERIESNUMBER") For Each Node In NodeList WScript.Echo(Node.Text)Next
Thanks
Jim
modifying an xml tag
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- jimbo101974
- Posts: 40
- Last visit: Mon Jan 12, 2009 4:52 am
modifying an xml tag
Hello all
Wondering if someone out there can help me with a problem I am having. I have an xml file that contains a tag called <SERIESNUMBER>. Within that tag there is a number. I am trying to write a script to change that number. I have been unsuccessful in finding any information describing this. I wrote the following to extract and show the tag but that is about as far as I've gotten.
Set objXMLDoc = CreateObject("Microsoft.XMLDOM") objXMLDoc.async = False objXMLDoc.load("c:tmpsettings.xml")
Set NodeList = objXMLDoc.documentElement.selectNodes("SERIESNUMBER") For Each Node In NodeList WScript.Echo(Node.Text)Next
Thanks
Jim
Wondering if someone out there can help me with a problem I am having. I have an xml file that contains a tag called <SERIESNUMBER>. Within that tag there is a number. I am trying to write a script to change that number. I have been unsuccessful in finding any information describing this. I wrote the following to extract and show the tag but that is about as far as I've gotten.
Set objXMLDoc = CreateObject("Microsoft.XMLDOM") objXMLDoc.async = False objXMLDoc.load("c:tmpsettings.xml")
Set NodeList = objXMLDoc.documentElement.selectNodes("SERIESNUMBER") For Each Node In NodeList WScript.Echo(Node.Text)Next
Thanks
Jim
- jimbo101974
- Posts: 40
- Last visit: Mon Jan 12, 2009 4:52 am
modifying an xml tag
Perfect thank you. I knew it had to be much easier than the information I was finding online.