从URL获取xml文件的内容并显示内容 [英] get the contents of an xml file from a url and display the contents

查看:140
本文介绍了从URL获取xml文件的内容并显示内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好所有

如何从网址获取xml文件的内容并在javascript中以漂亮的格式显示内容

任何人都可以帮助我

谢谢

hello all
how i can get the contents of an xml file from a url and display the contents in a nice format in javascript
can any one help me
thanks

推荐答案

来自w3schools的这个页面告诉你 - XML Parser [ ^ ]。



使用也可以使用 jQuery.get() [ ^ ]从任何网址获取xml然后解析它,jQuery有非常有用的方法来做这些事情。



希望这有帮助!
This page from w3schools tells you exactly that - XML Parser[^].

Use may also use jQuery.get()[^] to get the xml from any url and then parse it, jQuery has quite a helpful methods to do such things very easily.

Hope this helps!


这篇关于从URL获取xml文件的内容并显示内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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