Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    evaluate() Function (slax Namespace)

    Namespaces

    http://xml.libslax.org/slax

    SLAX Syntax

    object slax:evaluate(expression);

    Release Information

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

    Description

    Evaluate a SLAX expression and return the results of the expression. This permits expressions using the extended syntax provided by SLAX in addition to what is allowed in XPath.

    Parameters

    expression
    —

    SLAX expression to evaluate.

    Return Value

    object
    —

    Result of the expression.

    Usage Examples

    var $result = slax:evaluate("expr[name == '&']");

    Published: 2013-03-05