Skip to content

Modifying an xml file

Robert Jacob edited this page Jan 30, 2017 · 1 revision

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

xmlchange <entry id>=<value>
-- OR --
xmlchange -id <entry id> -val <name> -file <filename>
          [-help] [-silent] [-verbose] [-warn] [-append] [-file]
-id The xml variable name to be changed. (required)
-val

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

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 "&apos;".

-file The xml file to be edited. (optional)
-silent Turns on silent mode. Only fatal messages will be issued. (optional)
-verbose Echoes all settings made by create_newcase and cesm_setup. (optional)
-help Print usage info to STDOUT. (optional)
Clone this wiki locally