title: Simple demonstration of using pyparsing's indentedBlock recursively
body: <p>I am trying to use <code>indentedBlock</code> in pyparsing (which looks awesome to me) to dissect some nested indentations, but am struggling a bit with comprehending its description in the API reference (or the more specific examples under <a href="http://pyparsing.wikispaces.com" rel="nofollow noreferrer">http://pyparsing.wikispaces.com</a> or the mentioning in <a href="https://stackoverflow.com/questions/1547944/">How do I parse indents and dedents with pyparsing?</a>). </p>
  
  <p>Could someone please point me to a concise demonstration or explanation of how to use <code>indentedBlock</code> recursively, or maybe provide one here? E.g., how would we convert something YAMLish like...</p>
  
  <pre><code>- a1_el
      - b1_el
          x1_attr: 1
          x2_attr: 2
      - b2_el
          - c1_el # I am a comment
      - b3_el
          x1_attr: 1 
  </code></pre>
  
  <p>...into some XML representation such as ...</p>
  
  <pre><code>&lt;a1_el&gt;
      &lt;b1_el x1_attr="1" x2_attr="2"/&gt;
      &lt;b2_el&gt;
          &lt;c1_el/&gt;&lt;!-- I am a comment --&gt;
      &lt;/b2_el&gt;
      &lt;b3_el x1_attr="1"/&gt;
  &lt;/a1_el&gt;
  </code></pre>
  
  <p>...with <code>indentedBlock</code>? (Also: In what practical situations would I need the different otpions for the <code>indentStack</code> parameter?). Thanks a lot! </p>