The ErrorLog XML schema definition (XSD) describes the UTF-8 XML document generated by the XSR_GET_PARSING_DIAGNOSTICS stored procedure as result of a parsing and validation errors in a XML document. The output XML document is stored in the errorDialog argument.
The root element of the XML schema definition is ErrorLog and is of type ErrorLogType.
<xs:complexType name="ErrorLogType">
<xs:sequence>
<xs:element name="XML_Error" type="XML_ErrorType" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name=name="XML_FatalError" type="XML_ErrorType" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="DB2_Error" type="DB2_ErrorType"/>
</xs:sequence>
</xs:complexType>
xs:complexType name="XML_ErrorType">
<xs:sequence>
<xs:element name="errCode" type="xs:int"/>
<xs:element name="errDomain" type="xs:string"/>
<xs:element name="errText" type="xs:string"/>
<xs:element name="lineNum" type="xs:unsignedInt"/>
<xs:element name="colNum" type="xs:unsignedInt"/>
<xs:element name="location" type="xs:string"/>
<xs:element name="schemaType" type="xs:string"/>
<xs:element name="tokens">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element name="token" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="count" type="xs:unsignedByte"
use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="parser" type="xs:string" use="required"/>
</xs:complexType>
XML_ErrorType element contains the following subelements:
<xs:complexType name="DB2_ErrorType">
<xs:sequence>
<xs:element name="sqlstate" type="xs:string"/>
<xs:element name="sqlcode" type="xs:int"/>
<xs:element name="errText" type="xs:string"/>
</xs:sequence>
<xs:attribute name="parser" type="xs:string" use="required"/>
</xs:complexType>
DB2_ErrorType element contains the following subelements: