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 badges3 Answers
Reset to default 4You 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条)