# maxLength Attribute

Defines the length of the field in number of bytes.

## Type

    xsd:byte

## Remarks

The maxLength attribute is an optional attribute of the field element.

## Example

The following is an example of the maxLength attribute as it is used in the field element:

    <xsf:listProperties>
       <xsf:fields>
          <xsf:field
             type="xsd:date"
             maxLength="10"
             name="TravelDate"
             columnName="TravelDate"
             required="yes"
             viewable="yes"
             node="TravelReport/Header/travelDate"
             aggregation="first"/>
       </xsf:fields>
    </xsf:listProperties>

©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