title: Create xml using tinyxml
body: <p>I have a problem. I need to create a following xml: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;MyApp value="5" name="me"&gt;
  &lt;/MyApp&gt;
  </code></pre>
  
  <p>Using c++ code I did the following:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include "tinyxml.h" 
  void main(){
      TiXmlDocument doc;
      TiXmlDeclaration * decl = new TiXmlDeclaration( "1.0", "utf-8", "");
      doc.LinkEndChild( decl );
  
      TiXmlElement * root;
      root = new TiXmlElement( "MyApp" );  
      root-&gt;SetAttribute("value","5");
      root-&gt;SetAttribute("name","me");
      doc.LinkEndChild( root );  
  
      doc.SaveFile( "madeByHand.xml" );
      return 0;
  }
  </code></pre>
  
  <p>I compile it using g++ tinyxml.cpp tinyxmlerror.cpp and tinyxmlparser.cpp.
  When i want to see the xml i've created. i have an error: it says it's not corectly written. where am i wrong?:)</p>