Update config file in xml format
Posted: Tue Apr 05, 2011 8:13 pm
Our application uses an xml file for client configuration. Is there a command to insert or replace a line of text?
Here is what I found, maybe I am missing something.
The Editini command doesn't form text in XML.
Editfile just replaces text
Writetotextfile command only allows beginning or end of file.
Required functionality:
Search for text <configuration>
Insert text <custom> on next line after <configuration> entry.
It would be even more helpful to have the ability to add a whole section:
<custom>
<customization name="Patch" directoryName="Patch" version="9.05.604.A" /customization>
</custom>
Thanks
Here is what I found, maybe I am missing something.
The Editini command doesn't form text in XML.
Editfile just replaces text
Writetotextfile command only allows beginning or end of file.
Required functionality:
Search for text <configuration>
Insert text <custom> on next line after <configuration> entry.
It would be even more helpful to have the ability to add a whole section:
<custom>
<customization name="Patch" directoryName="Patch" version="9.05.604.A" /customization>
</custom>
Thanks