Modifying an xml file

Users can edit the xml files directly to change the variable values. However, modification of variables in the xml scripts is best done using the xmlchange script in the $CASEROOT directory since it performs variable error checking as part of changing values in the xml files. To invoke the xmlchange script:

xmlchange -file [name] -id [name] -val [name] -help -silent -verbose -warn -append


The xml file to be edited.


The xml variable name to be changed.


The intended value of the variable associated with the -id argument.

Note: If you want a single quotation mark ("'", also called an apostrophe) to appear in the string provided by the -val option, you must specify it as "'".


Turns on silent mode. Only fatal messages will be issued.


Echoes all settings made by configure.


Print usage info to STDOUT.


Warn and abort if you would be overwriting a current value in the field. This is useful so you make sure you aren't overwriting a field that is currently set.


Append the given value to the end of the current value of the field. Sometimes you want to add an option to the end of an existing field, making sure you leave the current value there (such as adding additional options to the CAM_CONFIG_OPTS variable).