如何在html页面div中显示一个xml文件 [英] how to show a xml file inside a html page div

查看:733
本文介绍了如何在html页面div中显示一个xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个字符串转换为xml格式并在div中将其表示为原始xml文件,但我收到消息为[object xml document]如何解析此

i want to convert a string into a xml format and represent it inside div as raw xml file but i am getting message as [object xml document] how to resolve this

推荐答案

你可能想要使用 AJAX

W3C [ ^ ]并查看 [ ^ ],您可以在其中传递XML文件路径作为参数。



-KR
You might want to use AJAX for this,
W3C[^] and see this[^], in which you can pass your XML file path as parameter.

-KR


这篇关于如何在html页面div中显示一个xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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