Specifications
1-17
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 1 Cisco CRS-1 Series XML API Overview
Cisco CRS-1 Series XML API Tags
Operation-specific content goes here
.
.
.
</Operation>
</Request>
Sample XML Response from Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion=”1” MinorVersion=”0”>
<Operation>
.
.
.
Operation response data returned here
.
.
.
</Operation>
</Response>
Note All examples in this document are formatted with new lines and white space to aid readability. Actual
XML request and response streams exchanged with the Cisco CRS-1 Series router do not include new
lines and white space characters because these elements would add significantly to the size of the XML
data and impact the overall performance of the Cisco CRS-1 Series XML API.
XML Declaration Tag
Each request and response exchanged between a client application and the Cisco CRS-1 Series router
must begin with an XML declaration tag indicating which version of XML and (optionally) which
character set are being used:
<?xml version="1.0" encoding="UTF-8"?>
Table 1-2 defines the attributes of the XML declaration that are defined by the XML specification.
Table 1-2 Attributes for XML Declaration
Name Description
Version Specifies the version of XML to be used. Only Version“1.0” is supported by the Cisco
CRS-1 Series router.
Note The version attribute is required.
Encoding Specifies the standardized character set to be used. Only “UTF-8” is supported by the
Cisco CRS-1 Series router. The Cisco CRS-1 Series router includes the encoding
attribute in a response only if it was specified in the corresponding request.
Note The encoding attribute is optional.