using System.Collections.Generic;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO.Compression;
public static void Test()
var xmlDoc = new XmlDocument();
xmlDoc.LoadXml(response);
var manager = new XmlNamespaceManager(xmlDoc.NameTable);
manager.AddNamespace("atom", @"http://purl.org/atom/ns#");
var parentNode = xmlDoc.DocumentElement.SelectNodes("./atom:entry", manager);
foreach (XmlNode childrenNode2 in parentNode)
var name = childrenNode2.SelectSingleNode("./atom:author/atom:name", manager)?.InnerText ?? "";
Console.WriteLine("\nInput XML: ");
Console.WriteLine(xmlDoc.GetOuterXml());
var xml = @"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>
<feed version=""0.3"" xmlns=""http://purl.org/atom/ns#"">
<modified>2018-08-10T14:50:46-04:00</modified>
<modified>2018-09-10T14:50:46-04:00</modified>
<modified>2018-06-10T14:50:46-04:00</modified>
<modified>2018-08-10T14:50:46-04:00</modified>
public static class XmlSerializationHelper
public static string GetOuterXml(this XmlNode node, bool indent = true)
using (var textWriter = new StringWriter())
var settings = new XmlWriterSettings
OmitXmlDeclaration = true,
using (var xmlWriter = XmlWriter.Create(textWriter, settings))
return textWriter.ToString();
public static void Main()
Console.WriteLine("Roslyn 2.0 Compiler; Environment version: " + Environment.Version);
Console.WriteLine("Uncaught exception: ");