0

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.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by __avd
0

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;

Edited by __avd: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.