title: How does YAML represent XML attributes?
body: <p>How can I convert this XML to YAML and back again without losing information?</p>
  
  <pre><code>&lt;foo bar='one' baz='two'&gt;Lorem Ipsum&lt;/foo&gt;
  </code></pre>
  
  <p>My best guess is something like this, but it looks too verbose to me:</p>
  
  <pre><code>foo:
    attr: 
      - bar: one
      - baz: two
    value: Lorem Ipsum
  </code></pre>
  
  <p>Second question: Is there syntax similar to this for attributes in YAML?</p>
  
  <pre><code>foo ( bar: one, baz: two ): Lorem Ipsum
  </code></pre>