internal static AwsSimilarProduct FromXmlNode(XmlNode node)
        {
            var product = new AwsSimilarProduct();
            foreach (XmlNode child in node.ChildNodes)
                if (child.Name.Equals("ASIN", StringComparison.CurrentCultureIgnoreCase))
                    product.ASIN = XmlHelper.GetValue(child);
                else if (child.Name.Equals("Title", StringComparison.CurrentCultureIgnoreCase))
                    product.Title = XmlHelper.GetValue(child);

            return product;
        }
Esempio n. 2
0
        internal static AwsSimilarProduct FromXmlNode(XmlNode node)
        {
            var product = new AwsSimilarProduct();

            foreach (XmlNode child in node.ChildNodes)
            {
                if (child.Name.Equals("ASIN", StringComparison.CurrentCultureIgnoreCase))
                {
                    product.ASIN = XmlHelper.GetValue(child);
                }
                else if (child.Name.Equals("Title", StringComparison.CurrentCultureIgnoreCase))
                {
                    product.Title = XmlHelper.GetValue(child);
                }
            }

            return(product);
        }