Share via


editing Element

Contains information about the editing components used in the view.

Type

  xsd:complexType

Structure

Name Description
xmlToEdit (Optional element) Specifies an instance of an editing component.

Remarks

The editing element is an optional element of the view element.

The editing components section of the Microsoft Office InfoPath 2007 form definition (.xsf) file defines how and when users are able to edit specified XML Document Object Model (DOM) nodes of a form's underlying XML document. Only one editing element is allowed per view. Each editing element can contain zero or more xmlToEdit elements.

Note   This element or attribute is optional in the form definition file (.xsf) of a form template deployed as a browser-compatible form to a server running InfoPath Forms Services.

Example

The following is an example of the editing element:

  <xsf:editing>
   <xsf:xmlToEdit name="CD_10"
      item="/CustomUISample/CDCollection/CD" 
      container="/CustomUISample">
      <xsf:editWith caption="CD"
         xd:autogeneration="template" 
         component="xCollection">
         <xsf:fragmentToInsert>
            <xsf:chooseFragment parent="CDCollection">
               <CD>
                  <Title></Title>
                  <Artist></Artist>
                  <Tracks>
                     <Track></Track>
                     <Track></Track>
                  </Tracks>
               </CD>
            </xsf:chooseFragment>
         </xsf:fragmentToInsert>
      </xsf:editWith>
   </xsf:xmlToEdit>
</xsf:editing>