public void LoadSchema(TreeFormatResult t)
 {
     foreach (var n in t.Value.Nodes)
     {
         EntityMappings.AddRange(n.Stem.Children);
     }
     foreach (var p in t.Positions)
     {
         Positions.Add(p.Key, p.Value);
     }
 }
        public List <EntityMapping> GetResult()
        {
            var tfr = new TreeFormatResult {
                Value = new Semantics.Forest {
                    Nodes = new List <Semantics.Node> {
                        MakeStemNode("ListOfEntityMapping", EntityMappings.ToArray())
                    }
                }, Positions = Positions
            };

            var x = XmlInterop.TreeToXml(tfr);
            var l = xs.Read <List <EntityMapping> >(x);

            return(l);
        }