The tool, I called it ConfigDriver.exe uses XPath to find and modify XML based files. Any XPath query that returns a single node will work. It uses a "|" delimited file as the change source and can be configured two ways.
File layout definition:
1) To change a Single node value
File Name Path | XPath Query | Node Value
2) To change an attribute value
File Name Path | XPath Query | Attribute Name | Attribute Value
Below are some sample calls
..\..\sampleFile.xml|/ConfigDriver/SampleOne|Change one node value
..\..\sampleFile.xml|/ConfigDriver/SampleTwo/Attrib[@name='item1']|description|Change one specific attribute value
..\..\sampleFile.xml|/ConfigDriver/SampleThree[@name='SpecificNone']|Change one node value by name
Here is a link to the program ConfigDriver.exe
No comments:
Post a Comment