public void BeginComplexType(string name, Type type, Type realtype, Guid guid) { var element = _doc.CreateElement(); _cur.Append(element); element.context.name = name; element.context.type = Framework.Assembly.GetTypeName(type); element.context.realType = Framework.Assembly.GetTypeName(realtype); element.context.valueType = NodeValueType.ComplexType; element.context.guid = guid; _cur = element; }