I have a XDocument that looks like this:
XDocument outputDocument = new XDocument(
new XElement("Document",
new XElement("Stuff")
)
);
That when I call
outputDocument.ToString()
Outputs to this:
<Document>
<Stuff />
</Document>
But I want it to look like this:
<Document>
<Stuff>
</Stuff>
</Document>
I realize the first one is correct, but I am required to output it this way. Any suggestions?