removeAncestors Attribute

Microsoft Office InfoPath

removeAncestors Attribute

Specifies the number of ancestor (parent) elements to be removed when the last item is removed.

Type

      xsd:nonNegativeInteger
    

Remarks

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

Default = 0. Must be a non-negative integer.

Example

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

    <xsf:editing>
   <xsf:xmlToEdit name="CD_10"
      item="/CustomUISample/CDCollection/CD" 
      container="/CustomUISample">
      <xsf:editWith caption="CD"
         removeAncestors="0"
         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>