透過JS跨網域存取XML檔
為了一些安全性的因素,通常伺服器會阻擋跨網域的XML存取,當然如果你是該網站開發者,所開發的頁面應該將會被放在被認可的網域中,不會碰到這個問題,但我們在開發前期有可能會不在所屬的網域,這樣就會造成開發上的困難,不過我們可以透過Yahoo所提供的YQL查詢語法來解決這個問題,以下就是相關的說明:
若我們在自己的電腦用以下的語法去存取一個網路上的XML
<script> $(function () { var xmlSource = "http://stanley.cloudlab.tw/crossDomainXML/testXML.xml"; $.ajax({ url: xmlSource, success: function (data) { console.log(data); } }) }) </script>
很可能會出現「No Access Control Allow Origin」的訊息:

但如果套用上YQL之後
<script> $(function(){ var xmlSource = "http://stanley.cloudlab.tw/crossDomainXML/testXML.xml"; var yqlURL = [ "http://query.yahooapis.com/v1/public/yql", "?q=" + encodeURIComponent("select * from xml where url='" + xmlSource + "'"), "&format=xml&callback=?" ].join(""); $.getJSON(yqlURL, function(data){ console.log(data) }); }) </script>

可以看到已經可以抓到XML內容,這樣可以讓我們較為方便的去開發,其他詳細的使用說明可以參考Yahoo YQL Guide。
http://modafinilmd.store/# modafinil pharmacy
safe online pharmacy: secure checkout Viagra – buy generic Viagra online
Continued https://web-foxwallet.com
verified Modafinil vendors: doctor-reviewed advice – legal Modafinil purchase
FDA approved generic Cialis buy generic Cialis online Cialis without prescription
modafinil legality doctor-reviewed advice buy modafinil online
secure checkout ED drugs: discreet shipping ED pills – affordable ED medication
buy modafinil online: legal Modafinil purchase – verified Modafinil vendors
http://modafinilmd.store/# legal Modafinil purchase
http://modafinilmd.store/# purchase Modafinil without prescription
Подробнее https://forum.hpc.name/thread/p812/117532/slabyy-mikrofon-naushnikov.html
safe modafinil purchase doctor-reviewed advice buy modafinil online
http://modafinilmd.store/# modafinil legality
cheap Viagra online: no doctor visit required – best price for Viagra
verified Modafinil vendors: modafinil 2025 – verified Modafinil vendors
see this page https://web-foxwallet.com/
http://modafinilmd.store/# modafinil 2025
purchase Modafinil without prescription: Modafinil for sale – purchase Modafinil without prescription
site https://web-foxwallet.com/
safe online pharmacy: secure checkout Viagra – Viagra without prescription
1XBet stands as a top-tier online betting provider.
Offering an extensive selection of sports, 1xBet caters to a vast audience around the world.
The 1XBet app crafted to suit both Android devices and Apple devices users.
http://jerezlecam.com/pag/ispolyzovanie_vintovyh_svay_pri_vozvedenii_fundamenta.html
Players are able to download the 1xBet app via the official website or Play Store for Android.
For iOS users, this software is available from Apple’s store easily.
проверить сайт https://forum.hpc.name/thread/w431/122326/apgreyd-noutbuka-asus-k73sv-stoit-li-obnovlyat-kakie-komponenty-mojno-uluchshit.html
магазин электроники техник маркетплейс продажи электроники
купить ноутбук леново ноутбук msi цена
doctor-reviewed advice legal Modafinil purchase modafinil 2025
have a peek at this web-site https://web-foxwallet.com
reliable online pharmacy Cialis: reliable online pharmacy Cialis – FDA approved generic Cialis
order Cialis online no prescription: buy generic Cialis online – online Cialis pharmacy
order Viagra discreetly same-day Viagra shipping buy generic Viagra online
best price for Viagra: trusted Viagra suppliers – secure checkout Viagra