XML : url directly giving xml how to use in angularjs

from currency feed URL I am getting xml data directly http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22SGDUSD%22,%20%22SGDINR%22,%20%22SGDCNY%22,%20%22SGDEUR%22)&env=store://datatables.org/alltableswithkeys

I found code to convert xml2json here http://plnkr.co/edit/pob3c28vkC3qR1hXfCv0?p=preview

my code is

  <a target="_self" href="http://query.yahooapis.com/v1/public/yql?                         q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22SGDUSD%22,                        %20%22SGDINR%22,%20%22SGDCNY%22,%20%22SGDEUR%22)&env=store://datatables.org/allt        ableswithkeys" download="D:\sample.xml">    

currencyFeedURL

but my url is giving direct xml dont know how to store it to desired location and give it as sample.xml

No comments:

Post a Comment