|
DMTF
Tutorial > WBEM > xmlCIM
 |
xmlCIM
|
 |
URI | XML | CIM-XML | CLP | Discovery | CQL
The mapping of CIM to XML (also known as, xmlCIM) is defined in the following
specifications:
- Representation of CIM using XML (DSP0201)
- CIM DTD (DSP0203)
NOTE: The DMTF is currently defining a mapping of CIM to XML Schema.
The Extensible Markup Language (XML) is a simplified subset of
SGML that offers powerful and extensible data modeling capabilities.
An XML document is a collection of data represented in XML. An XML schema
is a grammar that describes the structure of an XML document.
xmlCIM is designed as a meta-schema mapping, which means that each
CIM Element, can be represented in XML. xmlCIM can be used
both to represent CIM Declarations (Classes, Instances, and QualifierTypes)
and the CIM Messages used by the CIM protocols. A Document Type Definition (DTD)
is a document that defines the structure in which an XML document is
created. The DMTF has provided a CIM DTD to allow XML documents to be
verified as conforming to the DTD.
An example of a CIM Declaration and a CIM Message follow.
CIM Declaration Example
<INSTANCE CLASSNAME="CIM_Namespace"> <PROPERTY PROPAGATED="false" NAME="Name" TYPE="string"> <VALUE>interop</VALUE> </PROPERTY> <PROPERTY PROPAGATED="false" NAME="CreationClassName" TYPE="string"> <VALUE>CIM_Namespace</VALUE> </PROPERTY> </INSTANCE>
CIM Message Example
<?xml version="1.0" encoding="utf-8" ?> <CIM CIMVERSION="2.3" DTDVERSION="2.2"> <MESSAGE ID="xxx" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="GetClass"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="interop"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="ClassName"> <CLASSNAME NAME="CIM_Namespace"/> </IPARAMVALUE> <IPARAMVALUE NAME="LocalOnly"> <VALUE>FALSE</VALUE> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM>
|