With triggers, you can use JavaScript expressions to specify control conditions. Control conditions narrow down when the trigger fires.
You can use the functions explained in "A.1 General JavaScript Functions" and the function explained below.
String eventData.getXMLData(String xpath)
Returns the text value of the XML element specified in the xpath expression
Example:
Consider the following XML fragment:
<Customer> <Data> <Name>John</Name> </Data> </Customer>
The following statement assigns the text value "John" of the <Name> XML element to the name variable.
var name = eventData.getXMLData ( "/Customer/Data/Name/text()");