title: How to convert an XML node to a C++ Structure?
body: <p>I am new in programming and I would like to know if it is possible to convert an XML node to a C++ Structure.
  For instance I have a file with the following XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;StrucDescription&gt;
    &lt;StrucName&gt;
      &lt;unStrucNameMember1 type="uint16"&gt;0&lt;/unStrucNameMember1&gt;
      &lt;unStrucNameMember2 type="uint8"&gt;0&lt;/unStrucNameMember2&gt;
      &lt;ulStrucNameMember3 type="int32"&gt;0&lt;/ulStrucNameMember3&gt;
      &lt;bStrucNameMember4 type="bool"&gt;true&lt;/bStrucNameMember4&gt;
      &lt;szStrucNameMember5 type="char" size="32"&gt;&lt;/szStrucNameMember5&gt;
    &lt;/StrucName&gt;
  &lt;/StrucDescription&gt;
  </code></pre>
  
  <p>Is it possible to create the bellow structure for future data storing from the above XML?</p>
  
  <pre><code>struct StrucName
  {
    uint16  unStrucNameMember1;
    uint8   unStrucNameMember2;
    int32   ulStrucNameMember3;
    bool    bStrucNameMember4;
    char   szStrucNameMember5[32];
  
    StrucName ()
    : unStrucNameMember1(0)
    , unStrucNameMember2(0)
    , ulStrucNameMember3(0)
    , bStrucNameMember4(true)
    , szStrucNameMember5()
  };
  </code></pre>
  
  <p>I thank you all for the answers.</p>