/// <summary>
 /// Output an XML representation string for given feed.
 /// </summary>
 /// <param name="feed">the <c>GsaFeed</c> to generate XML</param>
 protected void OutputXml(GsaFeed feed)
 {
     feed.SaveToXml(new XmlTextWriter(Console.Out));
 }
 /// <summary>
 /// Gets GsaEntry from the file specified with --input option.
 /// </summary>
 /// <param name="inputFileName">input file name</param>
 /// <returns>the GsaEntry parsed from given file</returns>
 protected GsaEntry GetEntryFromFile(string inputFileName)
 {
     GsaFeed feed = new GsaFeed(null, null);
     feed.Parse(File.OpenRead(inputFileName), AlternativeFormat.Atom);
     GsaEntry entry = null;
     if (feed.Entries.Count > 0)
     {
         entry = feed.Entries[0] as GsaEntry;
     }
     return entry;
 }