I have an XML file that I want to modify. For the most part, I just need to change a line like this:
to a line like this:
(basically, just removing the dash)
My first thought was to treat it like a regular text file and read the entire file into a string, modify the string (using a regular expression find/replace), and then save that string to a new file. I have a feeling that there's a better way to do this via the XMLDOM but I can't figure it out. Is there a good online reference for all of the methods available within VBScript for manipulating XML documents?
I'd appreciate it if someone could give me a nudge in the right direction.
Code:
<Company:Qty>-20</Company:Qty>
Code:
<Company:Qty>20</Company:Qty>
My first thought was to treat it like a regular text file and read the entire file into a string, modify the string (using a regular expression find/replace), and then save that string to a new file. I have a feeling that there's a better way to do this via the XMLDOM but I can't figure it out. Is there a good online reference for all of the methods available within VBScript for manipulating XML documents?
I'd appreciate it if someone could give me a nudge in the right direction.