Quote:
Originally Posted by Hitch
In XHTML, structurally, you care about Book-->Sections (if they exist)-->Headings-->Structure if any below headings, eg divs-->Paragraphs-->Spans/words/letters. That's it. In XML, the structure is everything. It has to be, by definition, very rigid, to do what you want it to. (Although, ironically, XML was supposed to be somewhat fluid by design.) You have the ability, in XHTML, to use a given class of paragraph style to suit multiple situations; you don't do that in XML.
|
It doesn't even make sense. XHTML must be a well-formed XML and have some kind of structure. It is no any different from a pure XML format.
Code:
<div class="letter">
<p class="lett1">Hello friend!</p>
<p>Blah</p>
</div>
and
Code:
<letter>
<salutation>Hello friend!</salutation>
<p>Blah</p>
</letter>
What is the difference? Those are both XML yet you claim the former is fundamentally more simple than latter.