Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

junos:data-xpath

Usage

Description

Define the XPath expression that selects that specific node in the operational response.

Many client applications use XPath to parse or reference nodes in Junos XML data. When a client application executes an operational RPC with the format="xml-xpath" attribute, the server returns XML output that includes the junos:data-xpath attribute for every tag. You can use this attribute to quickly retrieve the correct XPath expression for a given element.

Usage Example

The following example executes the <get-commit-revision-information> RPC and requests the xml-xpath format:

The xml-xpath format returns XML output that includes the XPath expression for each node.

Release Information

junos:data-xpath attribute added in Junos OS Release 26.2R1 and Junos OS Evolved Release 26.2R1.