title: Formatting when doing a Cut and Paste from C# to XSD
body: <p>I am creating a xsd Schema using Visual Studio and have a Ton of Xml files that have information in them that I need to add to the schema, I finally decided it was just taking too long doing it all manually, so I decided to write a small parser. The C# App works fine, It parses through the xml file and Displays the completed lines in a Textbox.  Using the Cut feature of the Textbox, I paste the code into my xsd file, and this is where the problem comes in.</p>
  
  <p>Here is the line causing the problem.</p>
  
  <pre><code>textBox1.Text += string.Format("&lt;xs:element minOccurs\"0\" name=\"{0}\"&gt;{1}", reader.Value, Environment.NewLine);
  </code></pre>
  
  <p>In my App's C# Textbox this line displays just fine, it shows up like so:</p>
  
  <pre><code>&lt;xs:element minOccurs"0" name="GreatWorkSlots"&gt;
  </code></pre>
  
  <p>It also shows up fine on NotePad++ in a xml file.</p>
  
  <p>However when it actually gets pasted into a xml or xsd file in visual studio it adds a few extra quotes " and looks like this:</p>
  
  <pre><code>&lt;xs:element minOccurs"""0" name="GreatWorkSlots"&gt;
  </code></pre>
  
  <p>Can anyone tell me what may be causing this issue?</p>
  
  <p><em>Edit</em> if I create a Text File using Visual Studio and paste the line into that text file it shows up fine, it only seems to be an issue with pasteing into a VS xml or xsd file.</p>
  
  <p>roadmaster</p>