Show All

# schemaErrorMessages Element

Contains custom error messages used to override XML Schema data type errors.

## Type

    xsd:complexType

## Structure

Name | Description
--- | ---
override | (Optional element) Defines one overriding error message for XML Schema data type errors for an individual XML Document Object Model (DOM) node.

## Remarks

The schemaErrorMessages element is an optional element of the xDocumentClass element.

## Example

The following is an example of the schemaErrorMessages element:

    <xsf:schemaErrorMessages>
       <xsf:override
          match="/sampleData/number">
          <xsf:errorMessage
             shortMessage="Invalid Number.">
                The value entered must be a valid number.
          </xsf:errorMessage>
       </xsf:override>
    </xsf:schemaErrorMessages>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp