outerxml

What is the simplest way to get indented XML with line breaks from XmlDocument?

When I build XML up from scratch with XmlDocument, the OuterXml property already has everything nicely indented with line breaks. However, if I call LoadXml on some very "compressed" XML (no line breaks or indention) then the output of OuterXml stays that way. So ... What is the simplest way to get beautified XML output from an instan...

AppCrash in IIS when accessing the XmlNode.OuterXml property of a large XML data

This is really strange. It doesn't happen when I run my solution in VS, but when it's running under IIS (it's just a SOAP WebService) I get an AppCrash whenever I access the OuterXml property of a request that has nested nodes, many levels (thousands) deep. Does anyone have an idea? In the logs there is nothing useful except for the w...