If using JUNOS XML tag elements to represent the element, a client application includes the action="replace" attribute in the <load-configuration> tag element:
<rpc>
<!- - For a file - ->
<load-configuration action="replace" url="file"/>
<!- - For a data stream - ->
<load-configuration action="replace">
<!- - JUNOS XML tag elements - ->
</load-configuration>
</rpc>
In the opening tag for the replacement element, the application includes two attributes—the replace="replace" attribute and either the inactive="inactive" or active="active" attribute. It includes tag elements for all children being defined for the element. In the following, the identifier tag element is called <name>:
<configuration>
<!- - opening tag for each parent of the element - ->
<element replace="replace" (inactive="inactive” | active="active")>
<name>identifier</name> <!- - if the element has an identifier - ->
<!- - tag elements for each child of the element - ->
</element>
<!- - closing tag for each parent of the element - ->
</configuration>