Show All

# field Attribute

Specifies a relative XPath expression from the XML Document Object Model (DOM) node specified by the item attribute of the xmlToEdit element.

## Type

    xsd:string

## Remarks

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

The field attribute refers to the XML DOM node in the form's underlying XML document ,which is to be displayed as an editable field for an xText list editing component. The default value is '.', which corresponds to editing the text content of the XML DOM node specified by the item attribute of the xmlToEdit element.

## Example

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

    <xsf:editing>
       <xsf:xmlToEdit name="CD_10"
          item="/CustomUISample/CDCollection/CD"
          container="/CustomUISample">
          <xsf:editWith
             autoComplete="no"
             field="@artist"
             component="xTextList">
          </xsf:editWith>
       </xsf:xmlToEdit>
    </xsf:editing>

©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