Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

uexpr

 

Syntax

Release Information

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

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

expressionXPath 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;".

Related Documentation