On Wed, 2010-04-28 at 17:56 -0600, AJ ONeal wrote:

> He's right. If people can't tell just by looking at the two
> side-by-side, no amount of explaining will reach them either.


XML
 - Opening and Closing Tags
 - Self-closing Tags (trivial)
 - Attributes
 - Comments
 - < > "
 - CDATA (if you're crazy enough to use it)
 - Other Entities (if you're crazy enough to use them)
 - Processing instructions (if you're crazy enough to use them)
 - Namespaces (c'mon, we're talking about config files here!)

YAML
 - Whitespace-based structure
 - Lists (multi-line & inline)
 - Hashes(multi-line & inline)
 - Blocks (folding and preserved)
 - Comments
 - String escapes
 - Node references (unlikely)
 - Hash merges (unlikely)
 - Multiple documents (unlikely)

So, looking at the two side by side, tell me again how much simpler YAML
is?

Note that I deliberately collapsed several of the YAML syntax details to
keep from too unfairly penalizing YAML for its complexity. If you ask
me, they look about equal until you consider how much more matures XML
is and how many more tools are able to work with it.

-- 
"XML is like violence: if it doesn't solve your problem, you aren't
using enough of it." - Chris Maden

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to