<p>Why would one choose <a href="http://yaml.org/" rel="noreferrer">YAML</a> over XML or any other formats?</p>

[{'answer_id': 80700, 'author': 'Sergio Acosta', 'author_id': 2954, 'author_profile': 'https://Stackoverflow.com/users/2954', 'pm_score': 2, 'selected': False, 'text': '<p>I would chose YAML if the documents needed to be edited or created by humans. Just a thought.</p>\n'}, {'answer_id': 80732, 'author': 'warren_s', 'author_id': 6255, 'author_profile': 'https://Stackoverflow.com/users/6255', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://www.yaml.org/" rel="noreferrer">YAML</a>\'s main advantages are human readability and compactness. Oh, and it\'s widely supported across various platforms and languages.</p>\n<p>YAML is very popular in the Ruby community, where it\'s mainly used in preference to XML for configuration files in Rails and Merb for example.</p>\n'}, {'answer_id': 80747, 'author': 'David Precious', 'author_id': 4040, 'author_profile': 'https://Stackoverflow.com/users/4040', 'pm_score': 4, 'selected': True, 'text': '<p>I agree with Sergio; YAML provides a format which is easily editable by humans, but also a good way to cleanly represent data structures.</p>\n\n<p>YAML tends to be much more human-readable, IMO.</p>\n\n<p>YAML is more of a data serialisation technique, rather than a markup language.</p>\n'}, {'answer_id': 361695, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 1, 'selected': False, 'text': '<blockquote>\n  <p>What type of application/utilization is YAML best suited for?</p>\n</blockquote>\n\n<p>This is hard to clearly answer. Instead, I\'ll try provide some examples of what YAML <em>isn\'t</em> good for (in my humble opinion).</p>\n\n<pre><code>&lt;name type="string"&gt;Orion&lt;/name&gt;\n&lt;age type="integer"&gt;26&lt;/age&gt;\n</code></pre>\n\n<p>This is a case of where it is useful to mix both attributes and values in XML. YAML doesn\'t have attributes, so you have to use type inference to decide what\'s a date/integer/string/etc - this fails for complex or user-defined types.</p>\n\n<pre><code>&lt;user&gt;\n  .... 10 lines of stuff\n  &lt;sub-user&gt;\n    ...15 more lines of stuff\n  &lt;/sub-user&gt;\n  .... 10 more lines of stuff belonging to user\n&lt;/user&gt;\n</code></pre>\n\n<p>This is a case where the closing tags in XML provide a lot of benefit. If you were to format the above data in YAML, using only indentation to provide \'scope\', it would be a lot harder to tell where things start and end.</p>\n\n<p>For good measure, here\'s a quote from the <a href="http://www.yaml.org/spec/1.1/#id856927" rel="nofollow noreferrer">official yaml spec at yaml.org</a></p>\n\n<blockquote>\n  <p>YAML is primarily a data serialization language. XML was designed to be backwards compatible with the Standard Generalized Markup Language (SGML) and thus had many design constraints placed on it that YAML does not share. Inheriting SGML’s legacy, XML is designed to support structured documentation, where YAML is more closely targeted at data structures and messaging. Where XML is a pioneer in many domains, YAML is the result of lessons learned from XML and other technologies. </p>\n</blockquote>\n'}, {'answer_id': 361700, 'author': 'Tony Arkles', 'author_id': 13868, 'author_profile': 'https://Stackoverflow.com/users/13868', 'pm_score': 0, 'selected': False, 'text': "<p>I use YAML as a cheap and easy replacement to writing a domain-specific language (particularly in cases where other developers will be doing maintenance; I'm not sure I'd use it when non-developers would be maintaining it)</p>\n"}]
['https://Stackoverflow.com/questions/80693', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/10708/']