What are precisely the sentences you need to modify - do you need o replace the first by the second?
Anyway I think you could use sed, awk or perl... but also a BLPackage + config file + BL grammar
Here is one solution :
First, define this file as a configuration file, by using the grammar file : config.xml.grammar (config.xml.gm), via Tools->Configuration Object Dictionary.
Then, browse the previous file in the Configuration section on a "gold" server.
Select, all the values needed, and create a BLPackage in order to add or modify the values, if necessary.
Then, create a Deploy Job for the previous BLPackage.
Add the job to the Batch Job section of the post-install OS provisioning tasks.
Thanks for your help.