using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main()
Console.WriteLine("Hello World");
var test2 = new XMLAttributeReaderLite(filelocation);
class XMLAttributeReaderLite
private StringBuilder _output = new StringBuilder();
private string _xmlstring;
private XmlDocument _xmlDoc;
public XMLAttributeReaderLite(XmlDocument xml)
public XMLAttributeReaderLite (string fileLocation)
_xmlstring = fileLocation;
public void BuildOutput ()
.Select(x => x.Attribute("name").Value)
.Aggregate(_output, (current, next) => current.AppendLine(next)).ToString());
public void PrintOutput()
Console.WriteLine(_output);