public static String VariantImageCollectionString(int productId) { VariantImageCollection variantImageCollection = new VariantImageCollection(productId, 1, "en-US"); XmlDocument doc = variantImageCollection.GetXMLBySize(); return(doc.InnerXml); }
public static XPathNodeIterator VariantImageCollectionXML(int productId) { VariantImageCollection variantImageCollection = new VariantImageCollection(productId, 1, "en-US"); XmlDocument doc = variantImageCollection.GetXMLBySize(); XPathNavigator nav = doc.CreateNavigator(); XPathNodeIterator ret = nav.Select("."); return(ret); }