public static void SerializeToXML(BnetCharacterIndexInfo settings, string path)
{
XmlSerializer serializer = new XmlSerializer(typeof(BnetCharacterIndexInfo));
TextWriter textWriter = new StreamWriter(path);
serializer.Serialize(textWriter, settings);
textWriter.Close();
}