title: Get text with line number from xml file in c#
body: <p>Can you please tell me how to get line number and text from xml file?</p>
  
  <p>for example...</p>
  
  <pre><code>var varLines = xmldocument.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.None);
  </code></pre>
  
  <p>Here, I got line numbers but how to get text as per line number </p>
  
  <pre><code>1.&lt;p&gt;This article contends that a new concept of education
  2.&lt;/p&gt;
  2.&lt;contrib-group&gt;
  3.&lt;contrib&gt;Organization, Peabody College of Vanderbil University, 230 Appleton Place,&lt;/contrib&gt;
  4.@&lt;/contrib-group&gt;
  5.&lt;day&gt;&lt;/day&gt;
  6.&lt;fpage&gt;3&lt;/fpage&gt;
  </code></pre>
  
  <p>I want to have the ouptut as shown below:</p>
  
  <pre><code>1.&lt;p&gt;This article contends that a new concept of education
  3.&lt;contrib&gt;Organization, Peabody College of Vanderbil University, 230 Appleton Place,&lt;/contrib&gt;
  4.@&lt;/contrib-group&gt;
  6.&lt;fpage&gt;3&lt;/fpage&gt;
  </code></pre>
  
  <p>Please tell me how to get it</p>