C# , xml parsing. get data between tags

后端 未结 6 844
执念已碎
执念已碎 2021-01-21 16:24

I have a string :

responsestring = \"
SOmetext<         


        
6条回答
  •  悲哀的现实
    2021-01-21 16:54

    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

提交回复
热议问题