What are the advantages of creating web pages with XML instead of HTML?

后端 未结 6 919
你的背包
你的背包 2021-02-08 00:46

From time to time, I see web pages whose content is solely written in XML (not HTML or XHTML). These pages usually have some style sheets (either XSLT or CSS) attached to them w

6条回答
  •  死守一世寂寞
    2021-02-08 01:05

    Those pages use XSLT to get rendered on the client side. Not every browser (especially older ones) supports rendering XML + XSLT. XML can however be used server-side as template and get transformed to HTML by the application running on the server. I personally don't see any advantages to this approach.

提交回复
热议问题