Top-Level Element

Meta Data Services Programming

Meta Data Services Programming

Top-Level Element

The Extensible Markup Language (XML) requires a top-level element (begin/end tag) that encapsulates all information contained in an XML document. Any Document Type Definitions (DTDs) defined or referenced in the document apply to the content of the top-level element.

The Open Information Model (OIM) to XML mapping defines a transfer element as the top-level structure. This element encapsulates all structured information that is described in the XML document. Additional features of the transfer element can be nested. The top-level element also maintains administrative information, such as what exporter generated the data and version.

Example
<?xml version="1.0"?>
<oim:Transfer version="1.0"
   xmlns:oim="http://www.mdcinfo.com/oim/oim.dtd">
   <oim:TransferHeader
      Exporter="MSMDCXML"
      ExporterVersion="2.0"
      TransferDateTime="19980804T08:15:00"
   >
      . . . user-defined information . . .
   </oim:TransferHeader>
   . . . objects . . .
</oim:Transfer>

All structures defined within the remainder of this section are valid only within the begin (<oim:Transfer>) and end (</oim:Transfer>) tags of the transfer element. The TransferHeader element is used to contain information about the component that generated the transfer.

See Also

XML Encoding Reference