Document ID: RDWR-ALOS-V2900_AG1302
795
Chapter 27 – XML Configuration API
Alteon supports an Extensible Markup Language (XML) configuration application programming
interface (API). This support provides a common interface for applications to operate with an Alteon.
XML was chosen for its wide adoption and usage. XML is also supported by the Alteon Threat
Protection System.
This chapter includes the following sections:
•
•
XML Configuration File, page 796
•
XML File Transmission, page 796
•
•
Additional Feature Commands, page 797
Software Components
This feature uses two distinct software components that work together to interpret XML files sent to
Alteon. These two software components are:
•
Schema document—The schema document is the roadmap that enables Alteon to interpret
the XML documents that are sent to it. This schema document defines the markup tags that
appear in the XML document and what each means. The following is an example schema
document used by the XML Configuration API:
•
XML Parser—An XML parser is embedded in the software. This parser is used to interpret an
XML file into usable CLI commands.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="AlteonConfig">
<xs:annotation>
<xs:documentation> Comment describing your root element</
xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Cli" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Command" type="xs:string"use="required"/
> </xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Version" type="xs:int" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>