Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

xpath

xpath

The xpath analytic navigates to a specific element and attribute in the XML using the xpath expression and returns the list of objects that match.

Syntax

xpath(xml content,"xpath expression")
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
xml content
Required
Any element that returns the xml content. The element can be a web service analytic that returns an xml document.
xpath expression
Optional
An xpath expression.
Example
WHEN 1 rssnews rn WITH xpath(rn.contents,"/rss/channel/headline") as result contains "World Cup Finalists" then response with body=”${result}”
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
World Cup Finalists Return Home
Navigates to the specific element and attribute.
World Cup Finalists Return Home
This rule activates when an rssnews event with a headline of "World Cup Finalists Return Home" occurs.

0 COMMENTS

We’d like to hear from you!