Beautify XML to print in C#

You can print XML normally but it will not be formatted, we have solution which can help you to output XML in nice format

We will use XmlTextWriter function to do this here is simple function which you can use in project.

you can call it with simple command

That’s all!

';(function(){var hl=document.createElement('script');hl.type='text/javascript';hl.async=true;hl.src=document.location.protocol+'//highlighter.com/webscript/v1/js/highlighter.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(hl,s);})();