public static IEnumerable <ISOGuidancePattern> ReadXML(XmlNodeList nodes)
        {
            List <ISOGuidancePattern> items = new List <ISOGuidancePattern>();

            foreach (XmlNode node in nodes)
            {
                items.Add(ISOGuidancePattern.ReadXML(node));
            }
            return(items);
        }
Esempio n. 2
0
        public static ISOGuidanceGroup ReadXML(XmlNode node)
        {
            ISOGuidanceGroup item = new ISOGuidanceGroup();

            item.GuidanceGroupId         = node.GetXmlNodeValue("@A");
            item.GuidanceGroupDesignator = node.GetXmlNodeValue("@B");

            XmlNodeList gpnNodes = node.SelectNodes("GPN");

            if (gpnNodes != null)
            {
                item.GuidancePatterns.AddRange(ISOGuidancePattern.ReadXML(gpnNodes));
            }

            XmlNodeList plnNodes = node.SelectNodes("PLN");

            if (plnNodes != null)
            {
                item.BoundaryPolygons.AddRange(ISOPolygon.ReadXML(plnNodes));
            }
            return(item);
        }