You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Utilities . XML . RunXPathQuery
Executes an XPath query against a specified XML file and returns the result in CSV or JSON format.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo executes an XPath query against a specified XML file and returns the result in CSV or JSON format. This Choreo can function in two different ways:
Here's an example of two row entries returned from the Google Spreadsheets API which could be used as the XML input:
<?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:gsx="http://schemas.google.com/spreadsheets/2006/extended"> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gsx="http://schemas.google.com/spreadsheets/2006/extended"> <id>https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g</id> <updated>2013-07-31T20:05:13.836Z</updated> <category scheme="http://schemas.google.com/spreadsheets/2006" term="http://schemas.google.com/spreadsheets/2006#list"/> <title type="text">john</title> <content type="text">lname: johnson, email: john@temboo.com</content> <link rel="self" type="application/atom+xml" href="https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g"/> <link rel="edit" type="application/atom+xml" href="https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g/117ip4mm5fnol"/> <gsx:fname>john</gsx:fname> <gsx:lname>johnson</gsx:lname> <gsx:email>john@temboo.com</gsx:email> </entry> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gsx="http://schemas.google.com/spreadsheets/2006/extended"> <id>https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g</id> <updated>2013-07-31T20:05:13.836Z</updated> <category scheme="http://schemas.google.com/spreadsheets/2006" term="http://schemas.google.com/spreadsheets/2006#list"/> <title type="text">john</title> <content type="text">lname: johnson, email: john@temboo.com</content> <link rel="self" type="application/atom+xml" href="https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g"/> <link rel="edit" type="application/atom+xml" href="https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g/117ip4mm5fnol"/> <gsx:fname>stan</gsx:fname> <gsx:lname>standley</gsx:lname> <gsx:email>stan@temboo.com</gsx:email> </entry> </feed>
If for example, you wanted to extract the first instance of the gsx:email field, you could provide the following inputs:
Mode: select
XPath: /feed/entry/gsx:email
But let's say that you want to return a list of all of links in the href attribute where the rel attribute is equal to "self". In this case, you would provide inputs like this:
Mode: recursive
XPath: /feed/entry/link[@rel="self"]/@href
ResponseFormat: csv
The configuration above would return a result that looks like this:
https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g
If the ResponseFormat input is set to "json", the result would be:
[ "https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g", "https://spreadsheets.google.com/feeds/list/0ArNdNVaZJYRqdGJiZ3M3MEE2ZU42NUlLcFlOTHdlN1E/od6/private/full/ckd7g" ]
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms