/// <summary> /// /// </summary> /// <param name="character"></param> public static string ExportAsEVEMonXML(Character character) { var serial = character.Export(); var doc = Util.SerializeToXmlDocument(serial.GetType(), serial); return(Util.GetXMLStringRepresentation(doc)); }
/// <summary> /// Creates a XML format file for character exportation. /// </summary> /// <param name="character"></param> /// <param name="plan"></param> public static string ExportAsEVEMonXML(Character character, Plan plan) { var serial = character.Export(); if (plan != null) { serial.Skills = character.Skills.Where(x => x.IsKnown || (plan != null && plan.IsPlanned(x))).Select(x => GetMergedSkill(plan, x)).ToList(); } var doc = Util.SerializeToXmlDocument(serial.GetType(), serial); return(Util.GetXMLStringRepresentation(doc)); }
/// <summary> /// Creates a XML format file for character exportation. /// </summary> /// <param name="character"></param> /// <param name="plan"></param> public static string ExportAsEVEMonXML(Character character, Plan plan) { var serial = character.Export(); if (plan != null) serial.Skills = character.Skills.Where(x => x.IsKnown || (plan != null && plan.IsPlanned(x))).Select(x => GetMergedSkill(plan, x)).ToList(); var doc = Util.SerializeToXmlDocument(serial.GetType(), serial); return Util.GetXMLStringRepresentation(doc); }