Specifies an XML fragment.
|attributeData||(Optional element) Specifies the name, and associated value, of an attribute that will be inserted, or modified if it already exists, by the insert action of the xCollection or xOptional editing components.|
|followingSiblings||(Optional attribute) Specifies a relative XPath expression from the parent node that specifies the XML Document Object Model (DOM) nodes prior to which the insertion of the XML fragment should occur. |
This attribute was only necessary in releases prior to Microsoft Office InfoPath 2003 Service Pack 1 and will not be automatically generated by Microsoft Office InfoPath 2007.
|This attribute was only necessary in releases prior to Microsoft Office InfoPath 2003 Service Pack 1 and will not be automatically generated by Microsoft Office InfoPath 2007.|
|parent||(Optional attribute) Specifies a relative XPath expression from the container node that specifies the XML DOM node under which the XML fragment is inserted.|
|innerFragment||(Optional attribute) Specifies a relative XPath expression from the parent node to the smallest fragment to be inserted.|
The chooseFragment element is a required element of the fragmentToInsert element.
The chooseFragment element has an open content model. It may contain text, or one or more element nodes, or mixed content (both element nodes and text nodes). In addition to or instead of XML data to be inserted directly as a fragment, it can contain one or more attributeData elements. In this case the attributeData elements are not included as inserted content, but are each used to specify setting an attribute value.
The chooseFragment elements are typically ordered in increasing size. The first will be the data fragment to be inserted by the insertBefore and insertAfter actions, when there is already at least one item in the collection. The insert action, on the other hand, can be invoked when there is currently a node in the XML tree corresponding to a container, but no node corresponding to an item (in other words, it can be used to insert the first item).
|Office InfoPath 2007 will generate only one chooseFragment node. For more information, see the innerFragment attribute.|
|Any element content within the XML fragment, other than attribute data, corresponds to new content to be inserted into the form's underlying XML document, and should be in the appropriate namespace.|
The following is an example of the chooseFragment element: