public static String ProductImageCollectionString(int ProductID, string ImageFileNameOverride, string SKU, string colors) { ProductImageCollection pic = new ProductImageCollection(ProductID, ImageFileNameOverride, SKU, 1, "en-US", colors); XmlDocument doc = pic.GetXMLBySize(); return(doc.InnerXml); }
public static XPathNodeIterator ProductImageCollectionXML(int ProductID, string ImageFileNameOverride, string SKU, string colors) { ProductImageCollection pic = new ProductImageCollection(ProductID, ImageFileNameOverride, SKU, 1, "en-US", colors); XmlDocument doc = pic.GetXMLBySize(); XPathNavigator nav = doc.CreateNavigator(); XPathNodeIterator ret = nav.Select("."); return(ret); }