url直接给xml如何在angularjs

时间:2016-04-13 10:28:11

标签: angularjs xml

从货币供稿网址

我直接获取xml数据 http://query.yahooapis.com/v1/public/yql?q=select%20 *%20from%20yahoo.finance.xchange%20where%20pair%20英寸20%(%22SGDUSD%22%20%22SGDINR%22%20%22SGDCNY%22%20%22SGDEUR%22)及; ENV =商店://datatables.org/alltableswithkeys

我在这里找到了转换xml2json的代码 http://plnkr.co/edit/pob3c28vkC3qR1hXfCv0?p=preview

我的代码是

<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   

但我的网址是直接xml不知道如何将其存储到所需位置并将其作为sample.xml提供

0 个答案:

没有答案