title: How to convert xml to c++ string
body: <p>I need to make my xml a valid string so we can feed it into the parser.  For some reason, I'm having trouble getting a valid string.  All the examples we have are more of an abbreviated version, but this one needs to be the full version (i.e. Canvas.Clip).  My question is, how do I make the following valid code?</p>
  
  <pre><code>static const char* pCanvasData = "\
                &lt;Canvas&gt;\
                      &lt;Canvas.Name = \"Test\" /&gt;\
                      &lt;Canvas.RenderTransform = \"1, 0, 0, 1, 0, 290\" /&gt;\
                      &lt;Canvas.Opacity&gt; = \"0.5\" /&gt;\
                      &lt;Canvas.Clip = \"M 40,75 H 30 V 25 Z\" /&gt;\
                      &lt;Path Fill=\"#FFFF0000\" /&gt;\
                      &lt;Path.Data&gt;\
                          &lt;PathGeometry&gt;\
                              &lt;PathFigure StartPoint=\"30,70\" IsClosed=\"true\" /&gt;\
                                    &lt;PolyLineSegment Points=\"110,170\" /&gt;\ 
                                    &lt;PolyLineSegment Points=\"80,170\" /&gt;\  **********this is where the compiler says "error missing closing quote" and last PolyLineSegment is the wrong color (black instead of red), but it turns red again at the last quote of "80,170\" /&gt;\
                               &lt;/PathFigure&gt;\
                           &lt;/PathGeometry&gt;\
                      &lt;\Path.Data&gt;\
                 &lt;/Canvas&gt;";
  </code></pre>
  
  <p>There's probably a missing quote but I don't see it.  Also, there may be something I'm missing with slashes, since this is the first time doing non-abbreviated xml for this type of xps.  I'd appreciate any help!  Just to head off any questions, we can't feed the xml into xml classes.  I need the char* here.</p>