title: Reading xml file from specific line
body: <p>this is my situation:</p>
  <pre><code>public static string ReadFromLine(int lineNumber, params string[] searchedAttribute)
  {
      //XmlTextReader reader = new XmlTextReader(xmlFilePath);
      XmlReaderSettings settings = new XmlReaderSettings();
      settings.LineNumberOffset = lineNumber;
      settings.DtdProcessing = DtdProcessing.Parse;
  
      FileStream fs = new FileStream(xmlFilePath, FileMode.OpenOrCreate, FileAccess.Read, FileShare.Read);
      XmlReader reader = XmlReader.Create(fs, settings);
  
      while (reader.Read())
      {
          if (reader.NodeType == XmlNodeType.Element &amp;&amp; reader.Name == searchedAttribute[0] || reader.Name == searchedAttribute[1])
          {
              if(reader.Name == searchedAttribute[0])
                  reader.MoveToAttribute(searchedAttribute[0]);
              else
                  reader.MoveToAttribute(searchedAttribute[1]);
  
              string currentAttributeValue = reader.ReadElementString();
              return currentAttributeValue;
          }
      }
      return &quot;notFound&quot;;
  }
  </code></pre>
  <p>In the method I want to read a xml file from line that is passed in the variable &quot;linenumber&quot;.</p>
  <p>Unfortunately, despite using my settings according to documentation, my <strong>reader starts at line 1</strong> every time.</p>
  <p>Appreciate any ideas how to solve it or another solutions.</p>