[Contents] [Prev] [Next] [Index] [Report an Error]

Parsing the JUNOScriptServer’s Opening <junoscript> Tag

The server then emits its opening <junoscript> tag, which has the following form (the tag appears on multiple lines only for legibility):

<junoscript xmlns="namespace-URL" xmlns:junos="namespace-URL" \
    schemaLocation="namespace-URL" os="JUNOS" \
    release="release-code" hostname="hostname" version="version">

The attributes are as follows:

In the following example of a JUNOScript server’s opening <junoscript> tag, the version attribute indicates that the server is using JUNOScript version 1.0, and the hostname attribute indicates that the routing platform’s name is big-router. The os and release attributes indicate that the routing platform is running the initial version of JUNOS Release 9.3. The xmlns and xmlns:xnm attributes indicate that the default namespace for JUNOS XML tag elements and the namespace for tag elements that have the xnm: prefix is http://xml.juniper.net/xnm/1.1/xnm. The xmlns:junos attribute indicates that the namespace for tag elements that have the junos: prefix is http://xml.juniper.net/junos/9.3R1/junos. The tag appears on multiple lines only for legibility.

<junoscript xmlns="http://xml.juniper.net/xnm/1.1/xnm"\
    xmlns:junos="http://xml.juniper.net/junos/9.3R1/junos" \
    schemaLocation="http://xml.juniper.net/junos/9.3R1/junos" os="JUNOS" \
    release="9.3R1" hostname="big-router" version="1.0">
    

[Contents] [Prev] [Next] [Index] [Report an Error]