title: Getting the child elements in tinyxml2
body: <p>This is probably a novice question, but I am new to tinyxml2 and can't find anything about this.</p>
  
  <p>I am trying to loop through a XML file using tinyxml2.</p>
  
  <pre><code>&lt;images&gt;
      &lt;correctImage&gt;image1.png&lt;/correctImage&gt;
      &lt;image&gt;image2.png&lt;/image&gt;
      &lt;image&gt;image3.png&lt;/image&gt;
  &lt;/images&gt;
  </code></pre>
  
  <p>I have the XMLElement of the image element, but I am not sure how to get the inside elements.</p>
  
  <p>Any hand would be appreciated.</p>
  
  <p>For the record, this is how I get the XML element:</p>
  
  <pre><code>tinyxml2::XMLElement *levelElement = doc.FirstChildElement("reactor")-&gt;FirstChildElement("level")-&gt;FirstChildElement("images");
  </code></pre>
  
  <p>Thanks in advance.</p>