title: XML to struct in c++
body: <p>Looking for something that can take an xml file and turn it into a struct like this.</p>
  
  <pre><code>typedef struct XMLpage{
      string type;
      string names[];
      string text;
      int Pos;
  
      struct XMLpage *Pages[];
  }; XMLpage
  </code></pre>
  
  <p>Basically i have a page that could contain other pages that could contain other pages and the plan was to have it read from an xml file and output it as a struct to be used later in someway.</p>