The other method for replacing the entire candidate configuration is to set the edit configuration mode to replace as a global variable. The candidate configuration includes the <default-operation> tag element with the value replace in the <edit-config> tag element, as described in Setting the Edit Configuration Mode. To specify the new configuration data, the application includes either a <config> tag element that contains the data or a <url> tag element that names the file containing the data, as discussed in Formatting the Configuration Data.
<rpc>
<edit-config>
<default-operation>replace</default-operation>
<source>
<!- - EITHER - ->
<config>
<!- - tag elements representing the new configuration - ->
</config>
<!- - OR - ->
<url>
<!- - location specifier for file containing the new configuration - ->
</url>
</source>
</edit-config>
</rpc>
]]>]]>