SMI Tutorial > SMI-S 1.1.0 Overview > SMI-S 1.1.0 Requirements > xmlCIM

Back

xmlCIM

Next

xmlCIM is a standard way to represent CIM data using the Extensible Markup Language (XML). XML is a subset of Standardized General Markup Language (SGML) that offers data modeling capabilities. An XML Document is a collection of data represented in XML. Hence, xmlCIM allows CIM data to be expressed as XML elements in an XML Document. This XML Document then becomes the payload that CIM-XML encapsulates within an HTTP header.

A Document Type Definition (DTD) is used to map CIM objects into XML elements. The CIM DTD is defined by the Distributed Management Task Force (DMTF). It defines CIM object Declarations to represent CIM meta schema elements such as Classes, Instances and Qualifiers, etc. It also defines CIM Messages for use by CIM-XML.

The following example illustrates the mapping of CIM data into XML elements. This XML Document a Class called CIM_LogicalPort whose superclass is CIM_LogicalDevice. The CIM_LogicalPort class definition includes a string Description Qualifier whose value is “The abstraction of a port or connection point of a Device.” The CIM_LogicalPort class has two Properties, Speed and MaxSpeed. The Speed Property is an unsigned 64-bit integer. It has a string Description Qualifier whose value is “The speed of the Port in Bits per Second.” The MaxSpeed Property is an unsigned 64-bit integer. It has a string Description Qualifier whose value is “The max speed of the Port in Bits per Second.” Both Properties have a string Units Qualifier whose value is “Bits per Second.”

<CLASS NAME="CIM_LogicalPort" SUPERCLASS="CIM_LogicalDevice">
     <QUALIFIER TRANSLATABLE="true" NAME="Description" TYPE="string">
          <VALUE>The abstraction of a port or connection point of a Device.</VALUE>
     </QUALIFIER>
     <PROPERTY NAME="Speed" TYPE="uint64">
          <QUALIFIER TRANSLATABLE="true" NAME="Description" TYPE="string">
               <VALUE>The speed of the Port in Bits per Second.</VALUE>
          </QUALIFIER>
          <QUALIFIER TRANSLATABLE="true" NAME="Units" TYPE="string">
               <VALUE>Bits per Second</VALUE>
          </QUALIFIER>
     </PROPERTY>
     <PROPERTY NAME="MaxSpeed" TYPE="uint64">
          <QUALIFIER TRANSLATABLE="true" NAME="Description" TYPE="string">
               <VALUE>The max speed of the Port in Bits per Second.</VALUE>
          </QUALIFIER>
          <QUALIFIER TRANSLATABLE="true" NAME="Units" TYPE="string">
               <VALUE>Bits per Second</VALUE>
          </QUALIFIER>
     </PROPERTY>
</CLASS>

 

Back Next