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>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp