Yes, I could do this. But there is some problem. I use ShapeNode as base class for my derived. And that's why I have in this class my functions SaveToXml and LoadFromXml defined as
/// <summary>
/// Saves the item content into an XML element
/// </summary>
/// <param name="xmlElement">An XmlElement the item's data should be stored into</param>
/// <param name="context">An XmlPersistContext object providing contextual information about the serialization process and some helper serialization methods</param>
protected override void SaveToXml(XmlElement xmlElement, XmlPersistContext context)
{
base.SaveToXml(xmlElement, context);
context.WriteInt(OutputNumber, "OutputNumber", xmlElement);
context.WriteInt(InputNumber, "InputNumber", xmlElement);
context.WriteUShort((ushort)Type, "ElementType", xmlElement);
context.WriteBool(m_ShadowProps.ShowShadows, "ShowShadows", xmlElement);
context.WriteDouble(m_ShadowProps.ShadowDepth, "ShadowDepth", xmlElement);
context.WriteColor(m_ShadowProps.ShadowColor, "ShadowColor", xmlElement);
context.WriteBool(m_bShowAnchorIdxs, "ShowAnchorIdxs", xmlElement);
}
/// <summary>
/// Loads the item content from an XML element
/// </summary>
/// <param name="xmlElement">An XmlElement containing the item's data</param>
/// <param name="context">An XmlPersistContext object providing contextual information about the serialization process and some helper serialization methods</param>
protected override void LoadFromXml(XmlElement xmlElement, XmlPersistContext context)
{
base.LoadFromXml(xmlElement, context);
OutputNumber = context.ReadInt("OutputNumber", xmlElement);
InputNumber = context.ReadInt("InputNumber", xmlElement);
Type = (NodeType)context.ReadUShort("ElementType", xmlElement);
m_ShadowProps.ShowShadows = context.ReadBool("ShowShadows", xmlElement);
m_ShadowProps.ShadowDepth = context.ReadDouble("ShadowDepth", xmlElement);
m_ShadowProps.ShadowColor = context.ReadColor("ShadowColor", xmlElement);
m_bShowAnchorIdxs = context.ReadBool("ShowAnchorIdxs", xmlElement);
}
And I don't sure that you can Load this file. May be it would be easy for you if I send you my application source code whith this file?