1 private string SavePackageCollectionXMLAsString(object objGraph)
2 {
3 string sXML = string.Empty;
4 XmlSerializer xmlFormat = new XmlSerializer(typeof(List<Package>));
5 using (StringWriter sw = new StringWriter())
6 {
7 xmlFormat.Serialize(sw, objGraph);
8 sXML = sw.ToString();
9 sw.Close();
10 return sXML;
11 }
12 }
13