views:

38

answers:

1

I have used XML in the past, but it is very verbose and clunky. We are currently using YAML, but I am finding that most developers have alot of trouble with the whitespace. Is there a YAML like format that is whitespace insensitive, but not as verbose as XML?

+4  A: 

You don't have to use the whitespace syntax in YAML. All the datastructures also have non-whitespace alternatives, e.g. sequences [1, 2, 3] and maps { key: value, k: v }. This is called flow style as opposed to block style.

An alternative might be JSON, which is actually a subset of YAML. It's basically YAML without block style and without extensibility.

Standard Lisp list syntax (list delimited by parentheses, elements separated by whitespace) is also a very nice format.

Jörg W Mittag