Illegal characters in path when loading a string with XDocument

前端 未结 3 1477
心在旅途
心在旅途 2020-12-29 18:16

I have very simple XML in a string that I\'m trying to load via XDocument so that I can use LINQ to XML:

 var xmlString = @\"

        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 18:56

    Use this for XML String

            XDocument reader;
            using (StringReader s = new StringReader(**XmlResult**))
            {
                reader = XDocument.Load(s);
            }
    

提交回复
热议问题