filter Attribute

Microsoft Office InfoPath

Show All Show All

filter Attribute

Specifies the XPath expression of the structured XML subtree when submitting a subset of the XML data.

Type

xsd:string

Parent Elements

Element Description
partFragment Defines one substitution group for a specific part of the input Simple Object Access Protocol (SOAP) message.

Definition

    <xsd:attribute name="filter" type="xsd:string" use="optional" ></xsd:attribute>
  

Remarks

Use the filter attribute when submitting the selected field or group as a structured XML subtree, including the tags. Can be omitted when submitting the content of the field or group.

Note  This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.

Example

The following is an example of the filter attribute as it is used in the partFragment element:

    <xsf:partFragment match="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"
 replaceWith=/dfs:myFields/dfs:dataFields/s0:IsPrime"
 filter="."
 sendAsString="yes"/>