Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

uexpr

date_range 13-Jan-21

Syntax

content_copy zoom_out_map
uexpr expression;

Description

Generate the string value of an XPath expression and add it to the result tree, but do not escape special characters. The uexpr statement behaves identically to the expr statement, except that the contents are not escaped. By default, characters such as "<", ">", and "&" are escaped into proper XML as "&lt;", "&gt;", and "&amp;", respectively, but uexpr does not execute this escaping mechanism.

Attributes

expression

XPath expression to add to the result tree.

SLAX Example

The following statement outputs the string to the result tree exactly as it appears in the statement. If expr is used in place of uexpr, the script would output the string "&lt;:&amp;&gt;".

content_copy zoom_out_map
uexpr "<:-&>";

Release Information

Statement introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.

footer-navigation