Extract nodes data from xml

后端 未结 3 1604
无人共我
无人共我 2021-01-14 22:57

I have an xml like this:


  5
  7
  9
         


        
3条回答
  •  星月不相逢
    2021-01-14 23:15

    I don't know it is fast enough for you but I'll give it a try

    string s = String.Join("," , xDoc.Descendants("PersonID").Select(p => (string)p));
    

提交回复
热议问题