# attributeData Element

Specifies the name, and associated value, of an attribute that will be inserted, or modified if it already exists, by the insert action of the xCollection or xOptional editing components.

## Type

    xsd:complexType

## Structure

Name | Description
--- | ---
attribute | (Required attribute) Specifies the name of the attribute to be inserted.
value | (Required attribute) Specifies the value of the attribute to be inserted.

## Remarks

The attributeData element is an optional element of the chooseFragment element.

## Example

The following is an example of the attributeData element:

    <xsf:editWith component="xOptional">
       <xsf:fragmentToInsert>
          <xsf:chooseFragment parent="report">
             <xsf:attributeData attribute="author" value="author name"/>
          </xsf:chooseFragment>
       </xsf:fragmentToInsert>
    </xsf:editWith>

©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