使用JavaScript从url读取xml文件 [英] Read xml file from url using JavaScript

查看:80
本文介绍了使用JavaScript从url读取xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用JavaScript

How i can read XML file from url (http://www.website.com/xmlfile.xml) using JavaScript

推荐答案

从url(http://www.website.com/xmlfile.xml)读取XML文件这里没有这样的工作。



以下是询问者的预期:

1. 首先尝试什么你想做!你可能会发现它并不那么难。

2.制定你所做的事情看似问题/不工作。



尝试一下,告诉你是否面临问题。

各位会员非常乐意帮忙。






我会为你提供一些提示。阅读 XMLHttpRequest (传统的Ajax)。使用它,您可以向URL发送请求并以XML格式取回响应。试试。
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.



I will provide you a hint on it. Read about XMLHttpRequest (traditional Ajax). using it, you can send a request to URL and get back the response as an XML. Try out.


这篇关于使用JavaScript从url读取xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆