当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - how to load a XDocument when the xml is in a string variable?

问题描述:

This question already has an answer here:

  • Populate XDocument from String

    4 answers

网友答案:

XDocument.Parse(yourvariable)

http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.parse.aspx

分享给朋友:
您可能感兴趣的文章:
随机阅读: