Example #1
0
        public static IEnumerable <ISOCropVariety> ReadXML(XmlNodeList nodes)
        {
            List <ISOCropVariety> items = new List <ISOCropVariety>();

            foreach (XmlNode node in nodes)
            {
                items.Add(ISOCropVariety.ReadXML(node));
            }
            return(items);
        }
Example #2
0
        public static ISOCropType ReadXML(XmlNode typeNode)
        {
            ISOCropType type = new ISOCropType();

            type.CropTypeId                  = typeNode.GetXmlNodeValue("@A");
            type.CropTypeDesignator          = typeNode.GetXmlNodeValue("@B");
            type.ProductGroupIdRef           = typeNode.GetXmlNodeValue("@C");
            type.ProprietarySchemaExtensions = ReadProperietarySchemaExtensions(typeNode);
            XmlNodeList cvtNodes = typeNode.SelectNodes("CVT");

            if (cvtNodes != null)
            {
                type.CropVarieties.AddRange(ISOCropVariety.ReadXML(cvtNodes));
            }

            return(type);
        }