title: Create XSD from XML with nested elements
body: <p>I want to create an XSD-file from an XML-file, but i get errors because there is a nested element with the same name as an upper element. The XML file looks (partly) like this:</p>
  
  <pre><code>- &lt;comments&gt;
    - &lt;generalCommentData&gt;
      &lt;createDate&gt;2016-03-18T07:36:48.272+0100&lt;/createDate&gt; 
      &lt;message&gt;Test1&lt;/message&gt; 
      ...
    - &lt;replies&gt;
      - &lt;generalCommentData&gt;
        &lt;createDate&gt;2016-03-18T07:36:48.272+0100&lt;/createDate&gt; 
        &lt;message&gt;Test2&lt;/message&gt; 
        ...
        &lt;replies /&gt;
        &lt;/generalCommentData&gt;
        ...
      &lt;/replies&gt;
      &lt;/generalCommentData&gt;
    &lt;/comments&gt;
  </code></pre>
  
  <p>Basically this XML shows some comments which may contain some reply-comments (which can contain reply-comments again) but every comment is actually <code>generalCommentData</code></p>
  
  <p>What can i do to make things work? I'm not used to working with XML-Files and i have no idea what to do. I don't even know if i explained correctly...</p>