title: How to read a string containing XML elements without using the XML properties
body: <p>I'm doing an XML reading process in my project. Where I have to read the contents of an XML file. I have achieved it.</p>
  
  <p>Just out of curiosity, I also tried using the same by keeping the XML content inside a string and then read only the values inside the elemet tag. Even this I have achieved. The below is my code.</p>
  
  <pre><code>string xml = &lt;Login-Form&gt;
                   &lt;User-Authentication&gt;
                       &lt;username&gt;Vikneshwar&lt;/username&gt;
                       &lt;password&gt;xxx&lt;/password&gt;
                   &lt;/User-Authentication&gt;
  
                   &lt;User-Info&gt;
                       &lt;firstname&gt;Vikneshwar&lt;/firstname&gt;
                       &lt;lastname&gt;S&lt;/lastname&gt;
                       &lt;email&gt;xxx@xxx.com&lt;/email&gt;
                   &lt;/User-Info&gt;
               &lt;/Login-Form&gt;";
          XDocument document = XDocument.Parse(xml);
  
  var block = from file in document.Descendants("client-authentication")
              select new
              {
                  Username = file.Element("username").Value,
                  Password = file.Element("password").Value,
              };
  
  foreach (var file in block)
  {
      Console.WriteLine(file.Username);
      Console.WriteLine(file.Password);
  }
  </code></pre>
  
  <p>Similarly, I obtained my other set of elements (firstname, lastname, and email). Now my curiosity draws me again. Now I'm thinking of doing the same using the string functions?</p>
  
  <p>The same string used in the above code is to be taken. I'm trying not to use any XMl related classes, that is, <a href="http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.aspx" rel="nofollow">XDocument</a>, <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx" rel="nofollow">XmlReader</a>, etc. The same output should be achieved using only string functions. I'm not able to do that. Is it possible?</p>