XML run-time error status codes.

This is a list of status codes that can be returned by XML run-time functions and generated code. More...

Defines

#define XML_OK_EOB   0x7fffffff
 End of block marker.
#define XML_OK_FRAG   XML_OK_EOB
 Maintained for backward compatibility.
#define XML_E_BASE   -200
 Error base.
#define XML_E_GENERR   (XML_E_BASE)
 General error.
#define XML_E_INVSYMBOL   (XML_E_BASE-1)
 An invalid XML symbol (character) was detected at the given point in the parse stream.
#define XML_E_TAGMISMATCH   (XML_E_BASE-2)
 Start/end tag mismatch.
#define XML_E_DUPLATTR   (XML_E_BASE-3)
 Duplicate attribute found.
#define XML_E_BADCHARREF   (XML_E_BASE-4)
 Bad character reference found.
#define XML_E_INVMODE   (XML_E_BASE-5)
 Invalid mode.
#define XML_E_UNEXPEOF   (XML_E_BASE-6)
 Unexpected end of file (document).
#define XML_E_NOMATCH   (XML_E_BASE-7)
 Current tag is not matched to specified one.
#define XML_E_ELEMMISRQ   (XML_E_BASE-8)
 Missing required element.
#define XML_E_ELEMSMISRQ   (XML_E_BASE-9)
 Missing required elements.
#define XML_E_TOOFEWELEMS   (XML_E_BASE-10)
 The number of elements in a repeating collection was less than the number of elements specified in the XSD minOccurs facet for this type or element.
#define XML_E_UNEXPSTARTTAG   (XML_E_BASE-11)
 Unexpected start tag.
#define XML_E_UNEXPENDTAG   (XML_E_BASE-12)
 Unexpected end tag.
#define XML_E_IDNOTFOU   (XML_E_BASE-13)
 Expected identifier not found.
#define XML_E_INVTYPEINFO   (XML_E_BASE-14)
 Unknown xsi:type.
#define XML_E_NSURINOTFOU   (XML_E_BASE-15)
 Namespace URI not defined for given prefix.
#define XML_E_KEYNOTFOU   (XML_E_BASE-16)
 Keyref constraint has some key that not present in refered constraint.
#define XML_E_DUPLKEY   (XML_E_BASE-17)
 Key or unique constraint has duplicated key.
#define XML_E_FLDABSENT   (XML_E_BASE-18)
 Some key has no full set of fields.
#define XML_E_DUPLFLD   (XML_E_BASE-19)
 Some key has more than one value for field.
#define XML_E_NOTEMPTY   (XML_E_BASE-20)
 An element was not empty when expected.

Detailed Description

This is a list of status codes that can be returned by XML run-time functions and generated code.

In many cases, additional information and parameters for the different errors are stored in the context structure at the time the error in raised. This additional information can be output using the rtxErrPrint or rtxErrLogUsingCB run-time functions.


Define Documentation

#define XML_E_BASE   -200

Error base.

XML specific errors start at this base number to distinguish them from common and other error types.

Definition at line 60 of file rtXmlErrCodes.h.

#define XML_E_ELEMMISRQ   (XML_E_BASE-8)

Missing required element.

This status code is returned by the decoder when the decoder knows exactly which element is absent.

Definition at line 121 of file rtXmlErrCodes.h.

#define XML_E_ELEMSMISRQ   (XML_E_BASE-9)

Missing required elements.

This status code is returned by the decoder when the number of elements decoded for a given content model group is less then the required number of elements as specified in the schema.

Definition at line 128 of file rtXmlErrCodes.h.

#define XML_E_FLDABSENT   (XML_E_BASE-18)

Some key has no full set of fields.

It is not valid for key constraint.

Definition at line 199 of file rtXmlErrCodes.h.

#define XML_E_NOMATCH   (XML_E_BASE-7)

Current tag is not matched to specified one.

Informational code.

Definition at line 115 of file rtXmlErrCodes.h.

#define XML_E_NSURINOTFOU   (XML_E_BASE-15)

Namespace URI not defined for given prefix.

A namespace URI was not defined using an xmlns attribute for the given prefix.

Definition at line 166 of file rtXmlErrCodes.h.

#define XML_E_TAGMISMATCH   (XML_E_BASE-2)

Start/end tag mismatch.

The parsed end tag does not match the start tag that was parsed earlier at this level. Indicates document is not well-formed.

Definition at line 90 of file rtXmlErrCodes.h.

#define XML_OK_EOB   0x7fffffff

End of block marker.

Definition at line 51 of file rtXmlErrCodes.h.

#define XML_OK_FRAG   XML_OK_EOB

Maintained for backward compatibility.

Definition at line 54 of file rtXmlErrCodes.h.