# AttributeType element

Specifies a column in the Schema namespace.

## Usage

    <AttributeType
    	name="xsd:string"
    	dt:type="[external type]"
    	dt:maxLength="[external type]"
    	rs:name="[external type]"
    />

## Element Information

Element type | Anonymous
Namespace | uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882
Schema name | Rowset Definition

## Elements and Attributes

### Child Elements

Element | Description
--- | ---
datatype | Specifies information about the data type of a column. Set to one of the types defined in dt.xsd.

### Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
name | xsd:string | required | Set to the name of a field in the PivotTable cache. The value of this attribute must be set to the value of one of the type attributes specified in the ElementType element. | See external namespace.
dt:type | external ref | optional | See external namespace. | See external namespace.
dt:maxLength | external ref | optional | See external namespace. | See external namespace.
rs:name | external ref | optional | See external namespace. | See external namespace.

## Definition

    <xsd:element name="AttributeType" minOccurs="0" maxOccurs="unbounded" >
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="datatype">
            <xsd:complexType>
              <xsd:attribute ref="dt:type" use="optional" />
              <xsd:attribute ref="dt:maxLength" use="optional" />
            </xsd:complexType>
          </xsd:element>
        </xsd:sequence>
        <xsd:attribute name="name" type="xsd:string" use="required">
        </xsd:attribute>
        <xsd:attribute ref="rs:name" use="required" />
      </xsd:complexType>
    </xsd:element>

©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