Eclipse.org Eclipse.org - Device Kit

Working with Control Markup Language (CML) files

Control markup language (CML) is an XML 1.0-compliant markup language that models the message set of a type of hardware. The content of the CML file is based on the hardware specification from the manufacturer. The hardware specification describes the fundamental requirements of the hardware and the message set, or "language," that the hardware understands.

You can use the Device Kit Java Generator to create Java classes from CML files. The Java code you generate and the runtime code provided with the Device Kit enable you to create devices, such as Global Positioning Satellites.

To develop devices with CML files, complete the following tasks:

  1. Familiarize yourself with CML tags and their attributes. Refer to the tag descriptions in the Javadoc for information about the CML tags and their attributes.
  2. Write a CML file that corresponds to the specification of the intended hardware. Refer to Creating a Control Markup Language file for instructions.
  3. Generate Java classes from the CML. Refer to Generating Java classes from a Control Markup Language file for instructions.
  4. Integrate the generated code into the final application. Refer to Integrating Java code into the final application for instructions.