The d2LogicalModel element

The d2LogicalModel element

Data is always published using a top element d2LogicalModel. The element is based on the D2LogicalModel class. The element consists of the two required elements exchange and payloadPublication. The d2LogicalModel element has modelBaseVersion as a required attribute

The payloadPublication element can be cast to a specific specification using the xsi:type attribute.

This scheme gives a visualization of the structure.

../../_images/element_d2logicalmodel.png

Attributes

modelBaseVersion

The modelBaseVersion attribute contains the d2LogicalModel version.

Type: Required Domain
String Yes 2

Elements

To get a better insight of the subelements of the d2LogicalModel element click on the url’s.

Exchange

PayloadPublication

Example

<d2LogicalModel xmlns="http://datex2.eu/schema/2/2_0" modelBaseVersion="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <exchange>
  <supplierIdentification>
   <country>nl</country>
   <nationalIdentifier>NLNDW</nationalIdentifier>
  </supplierIdentification>
  <subscription>
   <operatingMode>operatingMode2</operatingMode>
   <subscriptionStartTime>2017-05-13T09:01:56.668Z</subscriptionStartTime>
   <subscriptionState>active</subscriptionState>
   <updateMethod>snapshot</updateMethod>
   <target>
    <address>127.0.0.1:468</address>
    <protocol>HTTP</protocol>
   </target>
  </subscription>
 </exchange>
 <payloadPublication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SituationPublication" lang="nl">
  <publicationTime>2017-05-17T14:21:08.235Z</publicationTime>
  <publicationCreator>
   <country>nl</country>
   <nationalIdentifier>NLNDW</nationalIdentifier>
  </publicationCreator>
  ..
 </payloadPublication>
</d2LogicalModel>