title: Convert xml string to treeview with nodes in Java FX
body: <p>I have a String that contains an xml like this:</p>
  
  <pre><code>&lt;root&gt;
     &lt;type&gt;
        &lt;element&gt;
           &lt;thing&gt;
              &lt;otherthing&gt;...&lt;/otherthing&gt;
           &lt;/thing&gt;
        &lt;/element&gt;
     &lt;/type&gt;
     &lt;type&gt;
        &lt;element&gt;
           &lt;thing&gt;
              &lt;otherthing&gt;...&lt;/otherthing&gt;
           &lt;/thing&gt;
        &lt;/element&gt;
     &lt;/type&gt;
     &lt;type&gt;
        &lt;element&gt;
           &lt;thing&gt;
              &lt;otherthing&gt;...&lt;/otherthing&gt;
           &lt;/thing&gt;
        &lt;/element&gt;
     &lt;/type&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I need a treenode in my treeview for each indentation so I can expand and contract it when I want cause there is so much information in each node, how can I do it?</p>
  
  <p>The result should be like this:</p>
  
  <pre><code>ROOT
  ---+type
  --------+element
  ----------------+thing
  ----------------------+otherthing
  ---+type
  --------+element
  ----------------+thing
  ----------------------+otherthing
  ---+type
  --------+element
  ----------------+thing
  ----------------------+otherthing
  </code></pre>
  
  <p>Thank you!</p>