recentpopularlog in

adrianoconnor : dotnet   20

Announcing .NET Core 2.0 | .NET Blog
h the Visual Studio family, .NET Core provides the most productive development platform for developers using MacOS or Linux as well as Windows. We encourage you to download the latest .NET Core SDK from https://dot.net/core and start working with this new version of .NET Core.
programming  dotnet 
august 2017 by adrianoconnor
c# - Format XML String to Print Friendly XML String - Stack Overflow
static string PrettyXml(string xml)
{
var stringBuilder = new StringBuilder();

var element = XElement.Parse(xml);

var settings = new XmlWriterSettings();
settings.OmitXmlDeclaration = true;
settings.Indent = true;
settings.NewLineOnAttributes = true;

using (var xmlWriter = XmlWriter.Create(stringBuilder, settings))
{
element.Save(xmlWriter);
}

return stringBuilder.ToString();
}
xml  prettify  code  c#  dotnet 
may 2016 by adrianoconnor

Copy this bookmark:





to read