Parsing The <Output> Tag Element; Requesting Information - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Parsing the <output> Tag Element
Copyright © 2010, Juniper Networks, Inc.
<!-- If the command does not have options -->
<operational-request/>
<!- - If the command has options -->
<operational-request>
<!-- tag elements representing the options -->
</operational-request>
</rpc>
The Junos XML protocol server encloses its response in the specific response tag element
that corresponds to the request tag element, enclosed in an
<rpc-reply xmlns:junos="URL">
<operational-response xmlns="URL-for-DTD">
<!-- Junos XML tag elements for the requested information -->
</operational-response>
</rpc-reply>
The opening tag for each operational response includes the
XML namespace for the enclosed tag elements that do not have a prefix (such as
in their names. The namespace indicates which Junos XML document type definition
(DTD) defines the set of tag elements in the response. The Junos XML API defines separate
DTDs for operational responses from different software modules. For instance, the DTD
for interface information is called
is called
. The division into separate DTDs and XML namespaces means
junos-chassis.dtd
that a tag element with the same name can have distinct functions depending on which
DTD it is defined in.
The namespace is a URL of the following form:
http://xml.juniper.net/junos/release-code/junos-category
is the standard string that represents the release of the Junos OS running
release-code
on the Junos XML protocol server device.
specifies the DTD.
category
The Junos XML API Operational Reference includes the text of the Junos XML DTDs for
operational responses.
If the Junos XML API does not define a response tag element for the type of output
requested by a client application, the Junos XML protocol server encloses its response
in an
tag element. The tag element's contents are usually one or more lines of
<output>
formatted ASCII output like that displayed by the CLI on the computer screen
For a reference page for the
Reference.
and the DTD for chassis information
junos-interface.dtd
<output>
tag element, see the Junos XML API Operational
Chapter 4: Requesting Information
tag element:
<rpc-reply>
attribute to define the
xmlns
junos:
)
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents