Double-click the cFile component to open
its Basic settings view in the Component tab.
In the Path field, specify the path where
the source file people.xml is located.
Right-click the Route from the repository tree view and select Manage Route Resources from the context
menu.
The Manage Route Resources wizard is
opened.
In the Manage Route Resources wizard,
click Add and select SampleXquery from the Resources tree view in
the dialog. Click OK.
The SampleXquery Route Resource is
added in the table of the Manage Route
Resources wizard.
Select the SampleXquery from the Route
Resources list and click Copy Path. Click
OK to close the wizard.
Double-click the cMessagingEndpoint
component to display its Basic settings
view in the Component tab.
In the URI field, enter xquery: and paste the path of the Route
Resource SampleXquery that we just copied
in double quotation marks.
Click the Advanced settings tab, add the
Camel component saxon in the Dependencies list. For more information about
Xquery, see Apache Camel's Website:
http://camel.apache.org/xquery-endpoint.html.
Double-click the cProcessor component to
open its Basic settings view in the
Component tab.
In the Code area, enter the following
code to display the messages intercepted on the console: