Re:XML Backlash?
by olavk on Saturday August 16, 2008 @10:45AM
(#277734)
BTW. the HTML is not valid XML so your example is a bit misleading. The P-elements contain the paragraphs rather than delimit them. The XML would be more verbose since it needs end-tags for P:
The s-expr OTOH would be more confusing, because there isn't a clear distinction between element-name and content:
You might want to choose a different syntax to make the distinction clearer:
or:
In the end, you have to make some of the same trade-off decisions that the designers of SGML and XML did. Just saying that s-expressions are simpler than XML is like saying ASCII is simpler than s-expressions: True, but kind of missing the point.
[ Parent
| on HN ]
There are no comments on this comment yet.