<xsd:complexType name="Reason">
<xsd:annotation>
<xsd:documentation xml:lang="en">A type defining a content model for describing the nature and possible location of a error within a previous message.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="reasonCode" type="xsd:token">
<xsd:annotation>
<xsd:documentation xml:lang="en">A machine interpretable error code.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="location" minOccurs="0">
<xsd:annotation>
<xsd:documentation>An value indicating the location of the problem within the subject message.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="locationType" type="xsd:normalizedString" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Plain English text describing the associated error condition</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="validationRuleId" minOccurs="0">
<xsd:annotation>
<xsd:documentation>A reference identifying a rule within a validation scheme</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="ValidationRuleId">
<xsd:attribute name="validationScheme" type="xsd:anyURI" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="additionalData" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Any string of additional data that may help the message processor, for example in a rejection message this might contain the text of the original request (within a CDATA section).</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="additionalDataType" type="xsd:normalizedString" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
|