Creating a Route Resource
-
From the repository tree view, right-click the Resources node and select Create
Resource from the context menu. -
The [New Route Resource] wizard opens. In
the Name field, type in a name for the
Resource, for example, SampleXquery. Click Finish to close the wizard. -
Enter the following code in the editor to extract the
firstName and lastName of all
the person elements.1234567891011declare namespace ns0="http://com.sap/b";<people>{for $p in /people//personreturn<person><firstName>{$p/firstName/text()}</firstName><lastName>{$p/lastName/text()}</lastName></person>}</people> -
Press Ctrl+S to save your Route
Resource.
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments