I\'m converting some code that currently uses an XmlWriter to create a document to instead return an XElement of the content.
XmlWriter
XElement
So far, I\'m enjo
XElement.Parse() should do the trick.
For example:
XElement e = new XElement("root", new XElement("child", XElement.Parse(""), new XElement("moreXml")));