Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
- <meta>
- <author></author>
- <description></description>
- <documentationURL></documentationURL>
- <sampleQuery>select * from {table}</sampleQuery>
- </meta>
- <bindings>
- <select itemPath="" produces="XML">
- <urls>
- <url></url>
- </urls>
- <inputs>
- <key id="data" type="xs:string" paramType="variable" required="true"/>
- </inputs>
- <execute>
- <![CDATA[
- y.include("store://hoge"); //json2
- var pdata = JSON.parse(data);
- var items = [];
- for (var i = 0; i < pdata.items[0].dt.length; i++) {
- items[i] = {
- 'dt': pdata.items[0].dt[i],
- 'dd': pdata.items[0].dd[i]
- };
- }
- response.object = { 'items': items };
- ]]>
- </execute>
- </select>
- </bindings>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement