Advertisement
Guest User

Untitled

a guest
Sep 29th, 2012
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
  3. <meta>
  4. <author></author>
  5. <description></description>
  6. <documentationURL></documentationURL>
  7. <sampleQuery>select * from {table}</sampleQuery>
  8. </meta>
  9. <bindings>
  10. <select itemPath="" produces="XML">
  11. <urls>
  12. <url></url>
  13. </urls>
  14. <inputs>
  15. <key id="data" type="xs:string" paramType="variable" required="true"/>
  16. </inputs>
  17. <execute>
  18. <![CDATA[
  19. y.include("store://hoge"); //json2
  20. var pdata = JSON.parse(data);
  21. var items = [];
  22. for (var i = 0; i < pdata.items[0].dt.length; i++) {
  23. items[i] = {
  24. 'dt': pdata.items[0].dt[i],
  25. 'dd': pdata.items[0].dd[i]
  26. };
  27. }
  28. response.object = { 'items': items };
  29. ]]>
  30. </execute>
  31. </select>
  32. </bindings>
  33. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement