Example: Requesting An Xml Schema - 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

Junos 10.3 Junos XML Management Protocol Guide

Example: Requesting an XML Schema

96
NOTE: Schema validators might not be able to process the schema if they cannot
locate or open the
junos.xsd
Whenever you change the version of Junos OS running on the device, remember to
update the
Junos-version
variable in the
The following examples show how to request the Junos configuration schema. In the
Junos XML protocol server's response, the first
<undocumented>
Junos XML tag element, which can be enclosed in most other container
tag elements defined in the schema (container tag elements are defined as
).
<xsd:complexType>
The attributes in the opening tags of the Junos XML protocol server's response appear
on multiple lines for legibility only. The Junos XML protocol server does not insert newline
characters within tags or tag elements. Also, in actual output the
is replaced by a value such as
Client Application
Junos XML Protocol Server
<rpc>
<get-xnm-information>
<type>xml-schema</type>
<namespace>junos-configuration</namespace>
</get-xnm-information>
</rpc>
<rpc-reply xmlns:junos="URL ">
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
<xsd:import schemaLocation="junos.xsd" \
Another
statement near the beginning of the schema defines the Junos
<xsd:element>
XML
tag element. It encloses the
<configuration>
the
<system>
tag element, which corresponds to the
statements corresponding to other hierarchy levels are omitted for brevity.
file.
junos.xsd
file to match.
<xsd:element>
for the initial version of Junos OS Release 10.3.
10.3R1
elementFormDefault="qualified">
namespace="http://xml.juniper.net/junos/
<xsd:element name="undocumented">
<xsd:complexType>
<xsd:sequence>
<xsd:any namespace="##any" processContents="skip"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="hostname">
<xsd:simpleContent>
<xsd:extension base="xsd:string"/>
</xsd:simpleContent>
</xsd:complexType>
<xsd:element>
statement defines the
JUNOS-version
Junos-version /junos"/>
statement that defines
[edit system]
hierarchy level. The
Copyright © 2010, Juniper Networks, Inc.
variable

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents