I
I
Ivan Ivanov2014-05-25 13:17:46
HTML
Ivan Ivanov, 2014-05-25 13:17:46

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

7 answer(s)
L
lookid, 2014-05-25
@0x3

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.

P
Pavel Solovyov, 2014-05-25
@pavel_salauyou

a very strange question, in general it is possible, but depending on the purpose)

S
sasha, 2014-05-25
@madmages

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.

A
Alexey Kuleshov, 2014-05-25
@GingerbreadMSK

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.

P
Puma Thailand, 2014-05-25
@opium

html is a special case of xml.

A
AxisPod, 2014-05-27
@AxisPod

You can make an xml and xsl file for it, all the markup in xsl, bare data in xml, the browser transforms into html.

V
valis, 2014-06-10
@valis

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 question

Ask a Question

731 491 924 answers to any question