I am very new to C#. I have XML file (text.xml). I want to read that in XmlDocument and store the stream in string variable.
XmlDocument
If your .NET version is newer than 3.0 you can try using System.Xml.Linq.XDocument instead of XmlDocument. It is easier to process data with XDocument.
System.Xml.Linq.XDocument
XDocument