javascript - is it possible to generate HTML 5 page from XML data? - Stack Overflow

I have data ing from a server in pure XML format, but I want to render the output as a rich HTML 5 page

I have data ing from a server in pure XML format, but I want to render the output as a rich HTML 5 page for the user. I got to use only client side scripting for this purpose (that too just Javascript).

So, is it possible to generate HTML-5 page using XML data?

Thank you.

I have data ing from a server in pure XML format, but I want to render the output as a rich HTML 5 page for the user. I got to use only client side scripting for this purpose (that too just Javascript).

So, is it possible to generate HTML-5 page using XML data?

Thank you.

Share Improve this question asked Jan 4, 2011 at 18:28 KillBillKillBill 311 silver badge3 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 4

You could use XSLT to transform the xml. That's exactly that its for and all major browsers support them, including IE6.

Otherwise, you could have a bare HTML with just a <head> and a <body> with jQuery and some JS wizardry.

Look over here. http://www.devarticles./c/a/JavaScript/JavaScript-and-XML/

Newer browers can parse XML

http://www.w3schools./xml/xml_parser.asp

So it should be possible to parse the XML in the browser, and then write code to take the model and render it as you see fit.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744206668a4563136.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信