10

How do I load an XDocument when the xml is in a string variable?

mrblah
  • 99,669
  • 140
  • 310
  • 420

1 Answers1

23

XDocument.Parse(yourvariable)

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