XMSG - XML Messaging Specification Schema Documentation

This accompanies the XMSG XML Messaging Specification Note.


Complex Type : document

Description

This type represents a document encoded within a message. This document may be an inline XML document, an inline non-XML document, or an out-of-band XML document via a reference. In all cases, a set of properties may be associated with the document.

The "uri" attribute identifies the URI of the document. This URI must be unique to the message and should be considered the identity of the document. In this way, the URI can be use to match document between the sender and receiver.

Definition

Content

Element only content consisting of:

Sequence ofproperty [*]
One ofcontent
data
data.reference

Attributes

NameRequiredDefaultDatatypeDescription
versionnostring (XML Schema)

An application-dependent version string for this document.

uriyesabsoluteURI (S)

The URI to be used to identify the contained or referred document. This value must be absolute.

Declaration

   <complexType content="elementOnly" name="document">
   <annotation>
   <documentation>
   <body>
   <p>This type represents a document encoded within a message.  This document may be an inline XML document, an inline non-XML document, or an out-of-band XML document via a reference.  In all cases, a set of properties may be associated with the document.</p>
   <p>The "uri" attribute identifies the URI of the document.  This URI must be unique to the message and should be considered the identity of the document.  In this way, the URI can be use to match document between the sender and receiver.</p>
   </body>
   </documentation>
   </annotation>
   <sequence minOccurs="1" maxOccurs="1">
   <element minOccurs="0" ref="property" maxOccurs="unbounded"></element>
   <choice minOccurs="1" maxOccurs="1">
   <element minOccurs="1" ref="content" maxOccurs="1"></element>
   <element minOccurs="1" ref="data" maxOccurs="1"></element>
   <element minOccurs="1" ref="data.reference" maxOccurs="1"></element>
   </choice>
   </sequence>
   <attribute use="required" type="xmsg:absoluteURI" name="uri">
   <annotation>
   <documentation>
   <body>
   <p>The URI to be used to identify the contained or referred document.  This value must be absolute.</p>
   </body>
   </documentation>
   </annotation>
   </attribute>
   <attribute use="default" type="string" name="version">
   <annotation>
   <documentation>
   <body>
   <p>An application-dependent version string for this document.</p>
   </body>
   </documentation>
   </annotation>
   </attribute>
   </complexType>