Is there an easy way to write an XElement object to a browser so that it's formatted nicely, like this: http://www.4guysfromrolla.com/demos/UserInfoWriter.2.aspx? I don't want to have to create any sort of strongly typed class, or explicitly write every node.
Example:
var xElement = new XElement("test", new XElement("node", "1"));
can I do something with xElement at this point?