public SchemaElement AddElement(string name, SchemaType type)
 {
     var result = new SchemaElement(name, type);
     elements.Add(result);
     return result;
 }
 public void AddType(SchemaType type)
 {
     types.Add(type);
 }
 public SchemaElement(string name, SchemaType type)
 {
     Name = name;
     Type = type;
 }