In an xml file I stored code snippet but while retrieve that code from an xml file it is displaying in a single line what should i have to do in order to get output as same original
<paper>
<question>"public class MyClass 
          { 
            public int x;
            public int y; 
            public void   Method()
            {
              x=10;
            } 
          }"
</question>
</paper> 
in form.cs
XDocument doc=new XDocument();
doc.load(path of an xml file);
var questions=doc.descedants("question");
foreach( var ques in questions)
{
label.Text=ques.Value;
}
this.Controls.Add(label1);
my output is
public class MyClass      { public int x;   public int y;   public void Method()   {    x=10;   }    }
 
     
    