static void Main(string[] args)
        {
            // ------------------------------------------------------------------------------------ //
            // Create parsing map from template
            // ------------------------------------------------------------------------------------ //

            var mappingConfig      = new XmlTemplateMappingConfiguration("@", ":");
            var xDoc               = XDocument.Load("template_test.xml");
            var templateMapBuilder = new TemplateMapBuilder(mappingConfig);

            Dictionary <string, XAttribute> map = templateMapBuilder.CreateTemplateMap(xDoc.Root);

            // ------------------------------------------------------------------------------------ //
            // Parsing document using created map
            // ------------------------------------------------------------------------------------ //

            var xmlParser = new XmlTemplateParser(map, mappingConfig);

            var entity = xmlParser.ParseDocument(XDocument.Load("doc_test.xml"));

            // ------------------------------------------------------------------------------------ //
            // Mapping dictionary to concrete entity
            // ------------------------------------------------------------------------------------ //

            var internalEntity = new Dictionary <string, object>();

            internalEntity.Add("Value", "test_internal");

            var internalList = new List <Dictionary <string, object> >();

            internalList.Add(internalEntity);
            internalList.Add(internalEntity);

            var testEntity = new Dictionary <string, object>();

            testEntity.Add("Name", "test");
            testEntity.Add("Entity", internalEntity);
            testEntity.Add("Entities", internalList);

            var mapper = new DictionaryToEntityMapper();

            var outEntity = mapper.Map <TestEntity>(testEntity);

            // ------------------------------------------------------------------------------------ //
        }