title: Generate XML using Xerces-C++
body: <p>I am attempting to generate XML similar to the below using the <a href="http://xerces.apache.org/xerces-c/" rel="nofollow"><code>xerces</code></a> libraries. I cannot find a suitable example to follow; can anyone with experience in this area please advise?</p>
  
  <pre><code>&lt;ad xsi:noNamespaceSchemaLocation="smaato_ad_v0.9.xsd" modelVersion="0.9"&gt;
      &lt;richmediaAd&gt;
          &lt;content&gt;
              &lt;script&gt;yadda...yadda... richmedia content ...yadda&lt;/script&gt;
          &lt;/content&gt;
          &lt;width&gt;728&lt;/width&gt;
          &lt;height&gt;90&lt;/height&gt;
          &lt;beacons&gt;
              &lt;beacon&gt;http://mysite.com/beacons/mybeacon1&lt;/beacon&gt;
              &lt;beacon&gt;http://mysite.com/beacons/mybeacon2&lt;/beacon&gt;
          &lt;/beacons&gt;
      &lt;/richmediaAd&gt;
   &lt;/ad&gt;
  </code></pre>