Free cookie consent management tool by TermsFeed Policy Generator

Changeset 150


Ignore:
Timestamp:
04/22/08 17:23:54 (16 years ago)
Author:
swagner
Message:

Fixed ticket #117

  • replaced character "`" in XML tag names by "_"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/PersistenceManager.cs

    r40 r150  
    3434    }
    3535    public static XmlNode Persist(IStorable instance, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
    36       return Persist(instance.GetType().Name, instance, document, persistedObjects);
     36      string name = instance.GetType().Name;
     37      name = name.Replace('`', '_');
     38      return Persist(name, instance, document, persistedObjects);
    3739    }
    3840    public static XmlNode Persist(string name, IStorable instance, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
     
    6870    public static void Save(IStorable instance, Stream stream) {
    6971      XmlDocument document = PersistenceManager.CreateXmlDocument();
     72
    7073      document.AppendChild(Persist(instance, document, new Dictionary<Guid, IStorable>()));
    7174      document.Save(stream);
Note: See TracChangeset for help on using the changeset viewer.