private void LoadSubdivisionContainment(string elmName, List <AttributeValue> list)
            {
                if (elmName != "subgroup")
                {
                    return;
                }
                TerContains ter = new TerContains();

                foreach (AttributeValue value in list)
                {
                    switch (value.Name)
                    {
                    case "type":
                        ter.Code = value.Value;
                        break;

                    case "contains":
                        ter.contains = value.Value;
                        break;

                    default:
                        _loader.Warning("Invalid attribute " + value.Name);
                        break;
                    }
                }
                if (ter.Code.HasValue() && ter.contains.HasValue())
                {
                    ter.tp = TerritoryTypes.Subdivisioned;
                    _terContains.Add(ter);
                }
            }
            private void LoadTerritoryContainment(string elmName, List <AttributeValue> list)
            {
                if (elmName != "group")
                {
                    return;
                }
                TerContains ter = new TerContains();

                foreach (AttributeValue value in list)
                {
                    switch (value.Name)
                    {
                    case "type":
                        ter.Code = value.Value;
                        break;

                    case "contains":
                        ter.contains = value.Value;
                        break;

                    case "grouping":
                        if (value.Value == "true")
                        {
                            ter.tp |= TerritoryTypes.Group;
                        }
                        break;

                    case "status":
                        switch (value.Value)
                        {
                        case "deprecated":
                            ter.tp |= TerritoryTypes.Deprecated;
                            break;

                        case "grouping":
                            ter.tp |= TerritoryTypes.MetaGroup;
                            break;
                        }
                        break;

                    default:
                        _loader.Warning("Invalid attribute " + value.Name);
                        break;
                    }
                }
                if (ter.Code.HasValue() && ter.contains.HasValue())
                {
                    _terContains.Add(ter);
                }
            }