Deployment automation script XML file handling

I'm doing a deployment automation, after deploying the packages now there are lot of manual changes are happen in xml and in some property files. For that changes developers will provide us the instruction in a text file as which file and in which path its located and what's the change. Say for example I've some web.xml file. below is my sample xml file Same like I'll have lot of configuration changes.

<!-- * Parameter Name: maxFileSizeToReplace -> Size in bytes or in KB (K) or MB (M) * Optional * Default Value = 512M * This controls the static file replacement - if any static file is more than specified size, * that will not be considered for URI replacement inside the file 9to avoid too much memory consumption)

<!-- * Parameter Name: logfile -> logfile name and size * Format : <Logfile path>;Size -> logfile path could be a directory or full path including file name, size could be in bytes, KB (K) or MB (M) * Ex : /usr/log/abc.log;10M * Optional * Default Value = if nothing specified, logging will be off. If size is not specified or invalidly specified default will be 5MB * If file is specified and writable then log will be written in that path. * If the path is directory the "staticfilter.log" file will be created under the path. * Log will be rotated after the size reached the size mentioned (default 5MB) --> <init-param> <param-name>logfile</param-name> <param-value>E:\Product\staticfilter.log;10M</param-value> </init-param> </filter> <filter-mapping> <filter-name>StaticContentFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>

Same like above I want to check the value welcome-file as LoginSR.jsp if not change it to LoginSR.jsp

<welcome-file-list> <welcome-file>LoginSR.jsp</welcome-file></welcome-file-list>Like wise I have 20 number of xml and property files changes right now. Is it possible to achieve this manual works to automate. Could anyone please guide me to achieve this.

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.