I have a string :
responsestring = \" SOmetext<
Try
XDocument doc = XDocument.Parse(str); var a = from hash in doc.Descendants("hash") select hash.Value;
you will need System.Core and System.Xml.Linq assembly references