Xml Overview; Junos Xml And Junos Xml Management Protocol Tag Elements - 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

XML Overview

Junos XML and Junos XML Management Protocol Tag Elements

4
information about the status of a device's interfaces, a client application sends the
<get-interface-information>
server gathers the information from the interface process and returns it in the
tag element.
<interface-information>
You can use the Junos XML management protocol and Junos XML API to configure devices
running Junos OS or request information about the device configuration or operation.
You can write client applications to interact with the Junos XML protocol server, but you
can also utilize the Junos XML protocol to build custom end-user interfaces for
configuration and information retrieval and display, such as a Web browser-based
interface.
XML is a language for defining a set of markers, called tags, that are applied to a data
set or document to describe the function of individual elements and codify the hierarchical
relationships between them. Tags look much like Hypertext Markup Language (HTML)
tags, but XML is actually a metalanguage used to define tags that best suit the kind of
data being marked.
For more details about XML, see A Technical Introduction to XML at
http://www.xml.com/pub/a/98/10/guide0.html
the
http://www.xml.com
site. The official XML specification from the World Wide Web
Consortium (W3C), Extensible Markup Language (XML) 1.0, is available at
http://www.w3.org/TR/REC-xml
The following sections discuss Junos XML and Junos XML management protocol tag
elements.
Junos XML and Junos XML Management Protocol Tag Elements on page 4
Document Type Definition on page 5
Items in an XML-compliant document or data set are always enclosed in paired opening
and closing tags. XML is stricter in this respect than HTML, which sometimes uses only
opening tags. The following examples show paired opening and closing tags enclosing
a value:
<interface-state>enabled</interface-state>
<input-bytes>25378</input-bytes>
The term tag element refers to a three-part set: opening tag, contents, and closing tag.
The content can be an alphanumeric character string as in the preceding examples, or
can itself be a container tag element, which contains other tag elements. For simplicity,
the term tag is often used interchangeably with tag element or element.
If a tag element is empty—has no contents—it can be represented either as paired opening
and closing tags with nothing between them, or as a single tag with a forward slash after
the tag name. For example, the notation
<snmp-trap-flag></snmp-trap-flag>
tag element from the Junos XML API. The Junos XML protocol
and the additional reference material at
.
<snmp-trap-flag/>
.
is equivalent to
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents