Ejemplo n.º 1
0
        public void ParseNode(XmlNode n)
        {
            if (n != null)
            {
                string classId = n.Attributes["ID"].Value;
                this.ServiceId = classId;

                this.ServiceDescription = MerchantTribe.Web.Xml.ParseInnerText(n, "SvcDescription");
                this.Rate = MerchantTribe.Web.Xml.ParseDecimal(n, "Postage");

                XmlNode ExtraServicesNode = n.SelectSingleNode("ExtraServices");

                this.ExtraServices.Clear();
                foreach (XmlNode n2 in ExtraServicesNode.SelectNodes("ExtraService"))
                {
                    InternationalExtraService svc = new InternationalExtraService(n2);
                    this.ExtraServices.Add(svc);
                }
            }
        }
Ejemplo n.º 2
0
        public void ParseNode(XmlNode n)
        {
            if (n != null)
            {
                string classId = n.Attributes["ID"].Value;
                this.ServiceId = classId;

                this.ServiceDescription = MerchantTribe.Web.Xml.ParseInnerText(n, "SvcDescription");
                this.Rate = MerchantTribe.Web.Xml.ParseDecimal(n, "Postage");

                XmlNode ExtraServicesNode = n.SelectSingleNode("ExtraServices");

                this.ExtraServices.Clear();
                foreach (XmlNode n2 in ExtraServicesNode.SelectNodes("ExtraService"))
                {
                    InternationalExtraService svc = new InternationalExtraService(n2);
                    this.ExtraServices.Add(svc);
                }
            }
        }