title: Parse XML in qt and get tree tag structure
body: <p>I need to parse an XML file in c++(!11)/ QT into a vector holding each value and its xml tag parent structure.</p>
  
  <p>I'm new to QT and I know there are some good options in their library. However, much of what I have found focuses on those who know the tag names ahead of time. For me I need something more generic. The tag names (and values) are irrelevant for my purpose and could be anything, my focus is on the tag structure holding each value. What is the best approach to take for this? QDomDocument?</p>
  
  <p>*Note: The actual xmls will be much more complex in tree structure length.</p>
  
  <p><strong>Example input</strong></p>
  
  <p>Test.xml</p>
  
  <pre><code>&lt;MainTag&gt;
  &lt;description&gt;Test Description&lt;/description&gt;
  &lt;type&gt;3&lt;/type&gt;
  &lt;source&gt;
      &lt;description&gt;Source test Description1&lt;/description&gt;
      &lt;type&gt;4&lt;/type&gt;
  &lt;/source&gt;
  &lt;source&gt;
      &lt;description&gt;Source test Description2&lt;/description&gt;
      &lt;type&gt;5&lt;/type&gt;
      &lt;name&gt;
          &lt;element&gt;1&lt;/element&gt;
      &lt;/name&gt;
  &lt;/source&gt;
  
  &lt;/MainTag&gt;
  </code></pre>
  
  <p><strong>Example Output</strong> </p>
  
  <p>(string rows contained in c++ vector):</p>
  
  <pre><code>description=Test Description
  type=3
  source.description=Source test Description1
  source.type=4
  source.description=Source test Description2
  source.type=5
  source.name.element=1
  </code></pre>