Hi everyone,
I get a string in XML format from front end.
I write that into a file, and later I parse that file to get tokens/values.

is there any way..that I can parse the string Instead?? which is in XMl format and fetch the tokens there.

Coz writing on disk and reading back is not optimum solution..it's causing problem in my code.

Tell me the classes that can be used, or a sample code snippet.

LoadXml method of XmlDocument.

System.Xml.XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlStr);

OR

var result = from ele in 
     XDocument.Parse(xmlStr).Descendants() 
      select ele;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.