Amazon.ECS.Model.Item.ToXMLFragment C# (CSharp) Метод

ToXMLFragment() защищенный Метод

XML fragment representation of this object
Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only
protected ToXMLFragment ( ) : String
Результат String
        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();
            if (IsSetAlternateVersions()) {
                AlternateVersions  alternateVersions = this.AlternateVersions;
                xml.Append("<AlternateVersions>");
                xml.Append(alternateVersions.ToXMLFragment());
                xml.Append("</AlternateVersions>");
            }
            if (IsSetASIN()) {
                xml.Append("<ASIN>");
                xml.Append(EscapeXML(this.ASIN));
                xml.Append("</ASIN>");
            }
            if (IsSetParentASIN()) {
                xml.Append("<ParentASIN>");
                xml.Append(EscapeXML(this.ParentASIN));
                xml.Append("</ParentASIN>");
            }
            if (IsSetDetailPageURL()) {
                xml.Append("<DetailPageURL>");
                xml.Append(EscapeXML(this.DetailPageURL));
                xml.Append("</DetailPageURL>");
            }
            if (IsSetSalesRank()) {
                xml.Append("<SalesRank>");
                xml.Append(EscapeXML(this.SalesRank));
                xml.Append("</SalesRank>");
            }
            if (IsSetSmallImage()) {
                Image  smallImage = this.SmallImage;
                xml.Append("<SmallImage>");
                xml.Append(smallImage.ToXMLFragment());
                xml.Append("</SmallImage>");
            }
            if (IsSetMediumImage()) {
                Image  mediumImage = this.MediumImage;
                xml.Append("<MediumImage>");
                xml.Append(mediumImage.ToXMLFragment());
                xml.Append("</MediumImage>");
            }
            if (IsSetLargeImage()) {
                Image  largeImage = this.LargeImage;
                xml.Append("<LargeImage>");
                xml.Append(largeImage.ToXMLFragment());
                xml.Append("</LargeImage>");
            }
            List<ImageSets> imageSetsList = this.ImageSets;
            foreach (ImageSets imageSets in imageSetsList) {
                xml.Append("<ImageSets>");
                xml.Append(imageSets.ToXMLFragment());
                xml.Append("</ImageSets>");
            }
            if (IsSetItemAttributes()) {
                ItemAttributes  itemAttributes = this.ItemAttributes;
                xml.Append("<ItemAttributes>");
                xml.Append(itemAttributes.ToXMLFragment());
                xml.Append("</ItemAttributes>");
            }
            if (IsSetMerchantItemAttributes()) {
                MerchantItemAttributes  merchantItemAttributes = this.MerchantItemAttributes;
                xml.Append("<MerchantItemAttributes>");
                xml.Append(merchantItemAttributes.ToXMLFragment());
                xml.Append("</MerchantItemAttributes>");
            }
            if (IsSetCollections()) {
                Collections  collections = this.Collections;
                xml.Append("<Collections>");
                xml.Append(collections.ToXMLFragment());
                xml.Append("</Collections>");
            }
            if (IsSetSubjects()) {
                Subjects  subjects = this.Subjects;
                xml.Append("<Subjects>");
                xml.Append(subjects.ToXMLFragment());
                xml.Append("</Subjects>");
            }
            if (IsSetOfferSummary()) {
                OfferSummary  offerSummary = this.OfferSummary;
                xml.Append("<OfferSummary>");
                xml.Append(offerSummary.ToXMLFragment());
                xml.Append("</OfferSummary>");
            }
            if (IsSetOffers()) {
                Offers  offers = this.Offers;
                xml.Append("<Offers>");
                xml.Append(offers.ToXMLFragment());
                xml.Append("</Offers>");
            }
            if (IsSetVariationSummary()) {
                VariationSummary  variationSummary = this.VariationSummary;
                xml.Append("<VariationSummary>");
                xml.Append(variationSummary.ToXMLFragment());
                xml.Append("</VariationSummary>");
            }
            if (IsSetVariations()) {
                Variations  variations = this.Variations;
                xml.Append("<Variations>");
                xml.Append(variations.ToXMLFragment());
                xml.Append("</Variations>");
            }
            if (IsSetCustomerReviews()) {
                CustomerReviews  customerReviews = this.CustomerReviews;
                xml.Append("<CustomerReviews>");
                xml.Append(customerReviews.ToXMLFragment());
                xml.Append("</CustomerReviews>");
            }
            if (IsSetEditorialReviews()) {
                EditorialReviews  editorialReviews = this.EditorialReviews;
                xml.Append("<EditorialReviews>");
                xml.Append(editorialReviews.ToXMLFragment());
                xml.Append("</EditorialReviews>");
            }
            if (IsSetSimilarProducts()) {
                SimilarProducts  similarProducts = this.SimilarProducts;
                xml.Append("<SimilarProducts>");
                xml.Append(similarProducts.ToXMLFragment());
                xml.Append("</SimilarProducts>");
            }
            if (IsSetAccessories()) {
                Accessories  accessories = this.Accessories;
                xml.Append("<Accessories>");
                xml.Append(accessories.ToXMLFragment());
                xml.Append("</Accessories>");
            }
            if (IsSetTracks()) {
                Tracks  tracks = this.Tracks;
                xml.Append("<Tracks>");
                xml.Append(tracks.ToXMLFragment());
                xml.Append("</Tracks>");
            }
            if (IsSetBrowseNodes()) {
                BrowseNodes  browseNodes = this.BrowseNodes;
                xml.Append("<BrowseNodes>");
                xml.Append(browseNodes.ToXMLFragment());
                xml.Append("</BrowseNodes>");
            }
            if (IsSetSearchInside()) {
                SearchInside  searchInside = this.SearchInside;
                xml.Append("<SearchInside>");
                xml.Append(searchInside.ToXMLFragment());
                xml.Append("</SearchInside>");
            }
            if (IsSetListmaniaLists()) {
                ListmaniaLists  listmaniaLists = this.ListmaniaLists;
                xml.Append("<ListmaniaLists>");
                xml.Append(listmaniaLists.ToXMLFragment());
                xml.Append("</ListmaniaLists>");
            }
            if (IsSetTags()) {
                Tags  tags = this.Tags;
                xml.Append("<Tags>");
                xml.Append(tags.ToXMLFragment());
                xml.Append("</Tags>");
            }
            return xml.ToString();
        }