Answer the question
In order to leave comments, you need to log in
Why is xml popular?
Is it actually possible to replace html with xml?
Answer the question
In order to leave comments, you need to log in
html - markup language
xml - markup language with arbitrary tags and other twists Ca
n't be replaced. You can look towards XSL and XSLT. For structured, uniform data, like products.
a very strange question, in general it is possible, but depending on the purpose)
an ancient well-established format for transmitting structured data via http (currently he himself came up with such a formulation). It is more popular than the same json because it appeared earlier and also because html is a special case of xml, but there is no point in explaining why html is popular. In general, there is nothing special about him, it just so happened that he was more popular. And the answer to your question is no. You can’t just take and replace html with xml, xml has a strict syntax and html doesn’t. xhtml can be replaced with xml, but in fact that's what it is.
The answer to the question "Why is xml popular?" :
Open format, published)) in 1998 (16 years ago), all of its 16 is an extensible markup language, on the basis of which many other subtypes (including modern HTML) have been created.
You can make an xml and xsl file for it, all the markup in xsl, bare data in xml, the browser transforms into html.
html is an information markup language, along with information, html tells how it should be presented.
xml - something more, it says what to do with this information, in what form it should be presented to the recipient. Therefore, xml is used to transfer, less often - to store information (Oracle, in my opinion, has achieved very good results with an xml database).
As for the ability of the browser to slip xml - no, it's not possible. He needs to be told what to do with this information. To do this, you need to use a css style sheet.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question