The <configuration> tag element is the top-level JUNOS XML container tag element for configuration statements. It corresponds to the [edit] hierarchy level in CLI configuration mode. Most statements at the next few levels of the configuration hierarchy are container statements. The JUNOS XML container tag element that corresponds to a container statement almost always has the same name as the statement.
![]() |
Note: The top-level <configuration-text> tag element also corresponds to the CLI configuration mode’s [edit] hierarchy level. It encloses formatted ASCII configuration statements instead of JUNOS XML tag elements, and is not relevant to the following discussion. For more information, see Requesting Output as Formatted ASCII Text or JUNOS XML Tag Elements and Defining Configuration Data as Formatted ASCII Text or JUNOS XML Tag Elements. |
The following example shows the JUNOS XML tag elements for two statements at the top level of the configuration hierarchy. Note that a closing brace in a CLI configuration statement corresponds to a closing JUNOS XML tag.
