Specifications

9-99
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 9 Cisco CRS-1 Series XML Schema Versioning
Retrieving Version Information
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0" IteratorID=”12345678”>
<Get xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ErrorCode=”0x43679000"
ErrorMsg="&apos;XML Service Library&apos; detected the &apos;warning&apos;
condition &apos;An error was encountered in the XML beneath this operation
tag&apos;" >
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0” ErrorCode="0x4368ac00"
ErrorMsg="&apos; XMLMDA&apos; detected the &apos;warning&apos; condition
&apos; The XML version specified in the XML request is not compatible
with the version running on the router&apos;"/>
</Configuration>
<Get>
</Response>
Retrieving Version Information
The version of the XML schemas running on the Cisco CRS-1 Series router can be retrieved using the
<GetVersionInfo> tag followed by the appropriate tags identifying the names of the desired components.
In the following example, the <GetVersionInfo> tag is used to retrieve the major and minor version
numbers for the BGP component configuration schema:
Sample XML Request to Retrieve Major and Minor Version Numbers
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration>
<BGP/>
</Configuration>
</GetVersionInfo>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0”/>
</Configuration>
</GetVersionInfo>
</Response>
The following example shows how to retrieve the version information for all configuration schemas
available on the router:
Sample XML Request to Retrieve Version Information for All Configuration Schemas
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration/>
</GetVersionInfo>
</Request>