create XML files from C++ program
<p>I have this variable, a vector of double pointers like:</p>

<pre><code>vector&lt;double*&gt; myIntersections;
</code></pre>

<p>which contains a vector whose elements are all a two dimensional vector of doubles.
I want to create a XML file (called for example myfile.axl - with this specific extension)
in which each row of the file is given by each element of the vector (so on each row one would have to elements at least vector[i][0], vector[i][1]) and the tags of the XML file are .., etc (so user defined).
The file will XML should be something like:</p>

<pre><code>&lt;point name="intersectPoints" size="4" color="rgb"&gt;
  -2.68 1.82 0.0 255 0 0
  -2.63 1.03 0.0 255 0 0
&lt;/point&gt;
</code></pre>

<p>where vector[0][0]=-2.68, vector[0][1]=1.82 and so on (0.0 255 0 0 being always the same)
I know how to write file in C++ (I was thinking about using the fstream library), but I do not know how to create the XML tags (other than with strings in this way they will be though strings) so I am a little bit lost.</p>

<p>any suggestions is more than welcomed.
thank you for your time,
madalina</p>
