Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static ISOCropVariety ReadXML(XmlNode node)
        {
            ISOCropVariety item = new ISOCropVariety();

            item.CropVarietyId         = node.GetXmlNodeValue("@A");
            item.CropVarietyDesignator = node.GetXmlNodeValue("@B");
            item.ProductIdRef          = node.GetXmlNodeValue("@C");

            return(item);
        }
Exemplo n.º 3
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);
        }