Share via


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.

Bb230450.vs_note(en-us,office.12).gif  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>