Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
fragmentToInsert Element
Collapse the table of content
Expand the table of content

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>


Community Additions

ADD
Show:
© 2015 Microsoft