match Attribute (domEventHandler Element)

Microsoft Office InfoPath

Show All Show All

match Attribute (domEventHandler Element)

Identifies the XML Document Object Model (DOM) node for which the event handler is declared.

Type

      xsd:string
    

Remarks

The match attribute is a required attribute of the domEventHandler element.

The value must be a valid XPath expression that identifies the XML DOM node.

Note  The XPath expression cannot contain predicates.

Example

The following is an example of the match attribute as it is used in the domEventHandler element:

    <xsf:domEventHandlers>
   <xsf:domEventHandler
      match="TravelReport/Expenses"
      handlerObject="TravelExpenses"/>
</xsf:domEventHandlers>