Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

fragmentToInsert Element

Office 2007

Contains alternate versions of XML data (fragments).

Type

xsd:complexType

Structure

NameDescription
chooseFragment(Required element) Specifies an XML fragment.

Remarks

The fragmentToInsert element is an optional element of the editWith element.

XML fragments are sources of XML data that can be used within an associated editing component. More than one chooseFragment element can be defined within a fragmentToInsert element.

The fragmentToInsert element is used by the xCollection, xOptional, and xReplace editing components.

Example

The following is an example of the fragmentToInsert 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>


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.