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; }
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); }