Load node of different type

Hi, we are evaluating the GoXam Diagram. We have a class NodeBaseModel and some other classes inherited from NodeBaseModel, for example:

public class InputDateModel : NodeBaseModel
public DateTime { get; set;}
public override void MakeXElement(XName n) { … }
public override void LoadFromXElement(XElement x) { … }

We have implemented the MakeXElement method and the XML of the diagram is correctly saved, but we have a problem when we try to read the XML because the method LoadFromXElement in the InputDateModel class is not called and all the nodes in the model are of type NodeBaseModel.

How we cha achive our goal?

Best regards

Are you calling Load with the extra functional argument(s) that do the actual allocation of new objects? That way you get to decide what to create.