3 ms·
I feel like the number one reason to use XML is the mixed content. This is also why XML and derived formats (the xml-y parts of HTML) are so good as markup lang
by emmanueloga_ 6y ago
I feel like the number one reason to use XML is the mixed content. This is also why XML and derived formats (the xml-y parts of HTML) are so good as markup languages.
So this:
p {
"mixed"
img href="test.png"
"content"
}
is worse than:
<p>mixed<img href="test" />content</p>
... at least as markup, since having to wrap all text in quotes is tedious.
The other language I know of that provides "natural" mixed content is scribble [1], but I think the only implementation that I know of is the racket one, since it is so tied to racket semantics.
If you take mixed content away from XML, then you may as well use one of the myriad of existing IDL languages, no?
1: https://docs.racket-lang.org/scribble/getting-started.html https://docs.racket-lang.org/scribble/getting-started.html