/// <summary> /// Save the specified Encog object to an XML writer. /// </summary> /// <param name="obj">The object to save.</param> /// <param name="xmlout">The XML writer to save to.</param> public void Save(IEncogPersistedObject obj, WriteXML xmlout) { PersistorUtil.BeginEncogObject(EncogPersistedCollection.TYPE_TEXT, xmlout, obj, true); TextData text = (TextData)obj; xmlout.AddCDATA(text.Text); xmlout.EndTag(); }