title: TinyXML throwing access violation
body: <p>I've recently started using tinyXML.  The problem is when I run my program to read through xml, it returns back an access violation.  A common line is:</p>
  
  <pre><code>doc.FirstChildElement("Map")-&gt;FirstChildElement("Width")-&gt;GetText()
  </code></pre>
  
  <p>With the visual studio debugger, I determined that it is returning null for the 'Map', and then is using a null reference to call functions.</p>
  
  <p>Here is the first lines of code, and the xml</p>
  
  <pre><code>XMLDocument doc;
      doc.LoadFile(path.c_str());
  
      int width = atoi(doc.FirstChildElement("Map")-&gt;FirstChildElement("Width")-&gt;GetText());
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
   &lt;Master&gt;
   &lt;Map&gt;
      &lt;Width&gt;5&lt;/Width&gt;
      &lt;Height&gt;5&lt;/Height&gt;
      &lt;Layers&gt;1&lt;/Layers&gt;
      &lt;Tiles&gt;
          &lt;Tile&gt;
              &lt;Id&gt;1&lt;/Id&gt;
              &lt;Path&gt;data/tiles/dirt-base.png&lt;/Path&gt;
          &lt;/Tile&gt;
      &lt;/Tiles&gt;
      &lt;Data&gt;
          &lt;DataLayer&gt;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1&lt;/DataLayer&gt;
      &lt;/Data&gt;
   &lt;/Map&gt;
   &lt;/Master&gt;
  </code></pre>
  
  <p>IT is important to note, I originally did not have the  root tag, but added it when it didn't work, adding it still didn't help though.  Any help would be appreciated</p>