Populate XDocument from String
How about this...?
TextReader tr = new StringReader("<Root>Content</Root>");XDocument doc = XDocument.Load(tr);Console.WriteLine(doc);
This was taken from the MSDN docs for XDocument.Load, found here...
How about this...?
TextReader tr = new StringReader("<Root>Content</Root>");XDocument doc = XDocument.Load(tr);Console.WriteLine(doc);
This was taken from the MSDN docs for XDocument.Load, found here...