Is it possible to create an HTML 5 page from XML data?

I have the data coming from the server in pure XML format, but I want to make a conclusion as a rich HTML 5 page for the user. For this I need to use only client scripts (this is also Javascript).

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

Thank.

+3
source share
3 answers

You can use XSLT to convert xml. This is what supports them for all major browsers, including IE6.

Otherwise you may have an empty HTML using only <head>and <body>with jQuery and some JS-magic.

+4
source

XML

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

Thus, it should be possible to parse the XML in the browser and then write the code to take the model and make it as you like.

+2
source

Source: https://habr.com/ru/post/1783464/


All Articles