public override bool TryThisParseXml(XmlElement elem)
        {
            if (!base.TryThisParseXml(elem))
                return false;

            if (!elem.HasChildNodes)
                return true;

            foreach (var cNode in elem.ChildNodes)
            {
                var cElem = cNode as XmlElement;
                if (cElem == null)
                    continue;
                var sector = new NaicsPrimarySector();
                if (sector.TryThisParseXml(cElem))
                    divisions.Add(sector);
            }

            return true;
        }
Exemple #2
0
 protected internal void ResolveNaicsOnSic()
 {
     if (SIC == null)
         return;
     var naics = StandardIndustryClassification.LookupNaicsBySic(SIC);
     if (naics == null)
         return;
     _primarySector = naics.Item1;
     _sector = naics.Item2;
     _market = naics.Item3;
 }