Amazon.ECS.Model.ItemAttributes.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();
            List<String> actorList  =  this.Actor;
            foreach (String actor in actorList) {
                xml.Append("<Actor>");
                xml.Append(EscapeXML(actor));
                xml.Append("</Actor>");
            }
            if (IsSetAddress()) {
                Address  address = this.Address;
                xml.Append("<Address>");
                xml.Append(address.ToXMLFragment());
                xml.Append("</Address>");
            }
            List<String> ageList  =  this.Age;
            foreach (String age in ageList) {
                xml.Append("<Age>");
                xml.Append(EscapeXML(age));
                xml.Append("</Age>");
            }
            if (IsSetAmazonMaximumAge()) {
                DecimalWithUnits  amazonMaximumAge = this.AmazonMaximumAge;
                xml.Append("<AmazonMaximumAge Units=" + "\"" +  EscapeXML(amazonMaximumAge.Units)  + "\"" +  ">");
                xml.Append(amazonMaximumAge.Value);
                xml.Append("</AmazonMaximumAge>");
            }
            if (IsSetAmazonMinimumAge()) {
                DecimalWithUnits  amazonMinimumAge = this.AmazonMinimumAge;
                xml.Append("<AmazonMinimumAge Units=" + "\"" +  EscapeXML(amazonMinimumAge.Units)  + "\"" +  ">");
                xml.Append(amazonMinimumAge.Value);
                xml.Append("</AmazonMinimumAge>");
            }
            if (IsSetAnalogVideoFormat()) {
                xml.Append("<AnalogVideoFormat>");
                xml.Append(EscapeXML(this.AnalogVideoFormat));
                xml.Append("</AnalogVideoFormat>");
            }
            if (IsSetApertureModes()) {
                xml.Append("<ApertureModes>");
                xml.Append(EscapeXML(this.ApertureModes));
                xml.Append("</ApertureModes>");
            }
            List<String> artistList  =  this.Artist;
            foreach (String artist in artistList) {
                xml.Append("<Artist>");
                xml.Append(EscapeXML(artist));
                xml.Append("</Artist>");
            }
            if (IsSetAspectRatio()) {
                xml.Append("<AspectRatio>");
                xml.Append(EscapeXML(this.AspectRatio));
                xml.Append("</AspectRatio>");
            }
            if (IsSetAssemblyInstructions()) {
                xml.Append("<AssemblyInstructions>");
                xml.Append(EscapeXML(this.AssemblyInstructions));
                xml.Append("</AssemblyInstructions>");
            }
            if (IsSetAssemblyRequired()) {
                xml.Append("<AssemblyRequired>");
                xml.Append(EscapeXML(this.AssemblyRequired));
                xml.Append("</AssemblyRequired>");
            }
            if (IsSetAudienceRating()) {
                xml.Append("<AudienceRating>");
                xml.Append(EscapeXML(this.AudienceRating));
                xml.Append("</AudienceRating>");
            }
            List<String> audioFormatList  =  this.AudioFormat;
            foreach (String audioFormat in audioFormatList) {
                xml.Append("<AudioFormat>");
                xml.Append(EscapeXML(audioFormat));
                xml.Append("</AudioFormat>");
            }
            List<String> authorList  =  this.Author;
            foreach (String author in authorList) {
                xml.Append("<Author>");
                xml.Append(EscapeXML(author));
                xml.Append("</Author>");
            }
            if (IsSetBackFinding()) {
                xml.Append("<BackFinding>");
                xml.Append(EscapeXML(this.BackFinding));
                xml.Append("</BackFinding>");
            }
            if (IsSetBandMaterialType()) {
                xml.Append("<BandMaterialType>");
                xml.Append(EscapeXML(this.BandMaterialType));
                xml.Append("</BandMaterialType>");
            }
            if (IsSetBatteriesIncluded()) {
                xml.Append("<BatteriesIncluded>");
                xml.Append(EscapeXML(this.BatteriesIncluded));
                xml.Append("</BatteriesIncluded>");
            }
            if (IsSetBatteriesRequired()) {
                xml.Append("<BatteriesRequired>");
                xml.Append(EscapeXML(this.BatteriesRequired));
                xml.Append("</BatteriesRequired>");
            }
            if (IsSetBatteries()) {
                NonNegativeIntegerWithUnits  batteries = this.Batteries;
                xml.Append("<Batteries Units=" + "\"" +  EscapeXML(batteries.Units)  + "\"" +  ">");
                xml.Append(batteries.Value);
                xml.Append("</Batteries>");
            }
            if (IsSetBatteryDescription()) {
                xml.Append("<BatteryDescription>");
                xml.Append(EscapeXML(this.BatteryDescription));
                xml.Append("</BatteryDescription>");
            }
            if (IsSetBatteryType()) {
                xml.Append("<BatteryType>");
                xml.Append(EscapeXML(this.BatteryType));
                xml.Append("</BatteryType>");
            }
            if (IsSetBezelMaterialType()) {
                xml.Append("<BezelMaterialType>");
                xml.Append(EscapeXML(this.BezelMaterialType));
                xml.Append("</BezelMaterialType>");
            }
            if (IsSetBinding()) {
                xml.Append("<Binding>");
                xml.Append(EscapeXML(this.Binding));
                xml.Append("</Binding>");
            }
            if (IsSetBrand()) {
                xml.Append("<Brand>");
                xml.Append(EscapeXML(this.Brand));
                xml.Append("</Brand>");
            }
            if (IsSetCalendarType()) {
                xml.Append("<CalendarType>");
                xml.Append(EscapeXML(this.CalendarType));
                xml.Append("</CalendarType>");
            }
            List<String> cameraManualFeaturesList  =  this.CameraManualFeatures;
            foreach (String cameraManualFeatures in cameraManualFeaturesList) {
                xml.Append("<CameraManualFeatures>");
                xml.Append(EscapeXML(cameraManualFeatures));
                xml.Append("</CameraManualFeatures>");
            }
            if (IsSetCaseDiameter()) {
                DecimalWithUnits  caseDiameter = this.CaseDiameter;
                xml.Append("<CaseDiameter Units=" + "\"" +  EscapeXML(caseDiameter.Units)  + "\"" +  ">");
                xml.Append(caseDiameter.Value);
                xml.Append("</CaseDiameter>");
            }
            if (IsSetCaseMaterialType()) {
                xml.Append("<CaseMaterialType>");
                xml.Append(EscapeXML(this.CaseMaterialType));
                xml.Append("</CaseMaterialType>");
            }
            if (IsSetCaseThickness()) {
                DecimalWithUnits  caseThickness = this.CaseThickness;
                xml.Append("<CaseThickness Units=" + "\"" +  EscapeXML(caseThickness.Units)  + "\"" +  ">");
                xml.Append(caseThickness.Value);
                xml.Append("</CaseThickness>");
            }
            if (IsSetCaseType()) {
                xml.Append("<CaseType>");
                xml.Append(EscapeXML(this.CaseType));
                xml.Append("</CaseType>");
            }
            if (IsSetCatalogNumber()) {
                xml.Append("<CatalogNumber>");
                xml.Append(EscapeXML(this.CatalogNumber));
                xml.Append("</CatalogNumber>");
            }
            List<String> categoryList  =  this.Category;
            foreach (String category in categoryList) {
                xml.Append("<Category>");
                xml.Append(EscapeXML(category));
                xml.Append("</Category>");
            }
            List<String> categoryBinList  =  this.CategoryBin;
            foreach (String categoryBin in categoryBinList) {
                xml.Append("<CategoryBin>");
                xml.Append(EscapeXML(categoryBin));
                xml.Append("</CategoryBin>");
            }
            if (IsSetCDRWDescription()) {
                xml.Append("<CDRWDescription>");
                xml.Append(EscapeXML(this.CDRWDescription));
                xml.Append("</CDRWDescription>");
            }
            if (IsSetChainType()) {
                xml.Append("<ChainType>");
                xml.Append(EscapeXML(this.ChainType));
                xml.Append("</ChainType>");
            }
            List<String> characterList  =  this.Character;
            foreach (String character in characterList) {
                xml.Append("<Character>");
                xml.Append(EscapeXML(character));
                xml.Append("</Character>");
            }
            if (IsSetCEROAgeRating()) {
                xml.Append("<CEROAgeRating>");
                xml.Append(EscapeXML(this.CEROAgeRating));
                xml.Append("</CEROAgeRating>");
            }
            if (IsSetClaspType()) {
                xml.Append("<ClaspType>");
                xml.Append(EscapeXML(this.ClaspType));
                xml.Append("</ClaspType>");
            }
            if (IsSetClothingSize()) {
                xml.Append("<ClothingSize>");
                xml.Append(EscapeXML(this.ClothingSize));
                xml.Append("</ClothingSize>");
            }
            if (IsSetClubType()) {
                xml.Append("<ClubType>");
                xml.Append(EscapeXML(this.ClubType));
                xml.Append("</ClubType>");
            }
            if (IsSetColor()) {
                xml.Append("<Color>");
                xml.Append(EscapeXML(this.Color));
                xml.Append("</Color>");
            }
            if (IsSetCompatibility()) {
                xml.Append("<Compatibility>");
                xml.Append(EscapeXML(this.Compatibility));
                xml.Append("</Compatibility>");
            }
            List<String> compatibleDevicesList  =  this.CompatibleDevices;
            foreach (String compatibleDevices in compatibleDevicesList) {
                xml.Append("<CompatibleDevices>");
                xml.Append(EscapeXML(compatibleDevices));
                xml.Append("</CompatibleDevices>");
            }
            if (IsSetComputerHardwareType()) {
                xml.Append("<ComputerHardwareType>");
                xml.Append(EscapeXML(this.ComputerHardwareType));
                xml.Append("</ComputerHardwareType>");
            }
            if (IsSetComputerPlatform()) {
                xml.Append("<ComputerPlatform>");
                xml.Append(EscapeXML(this.ComputerPlatform));
                xml.Append("</ComputerPlatform>");
            }
            if (IsSetConnectivity()) {
                xml.Append("<Connectivity>");
                xml.Append(EscapeXML(this.Connectivity));
                xml.Append("</Connectivity>");
            }
            if (IsSetContinuousShootingSpeed()) {
                DecimalWithUnits  continuousShootingSpeed = this.ContinuousShootingSpeed;
                xml.Append("<ContinuousShootingSpeed Units=" + "\"" +  EscapeXML(continuousShootingSpeed.Units)  + "\"" +  ">");
                xml.Append(continuousShootingSpeed.Value);
                xml.Append("</ContinuousShootingSpeed>");
            }
            if (IsSetCountry()) {
                xml.Append("<Country>");
                xml.Append(EscapeXML(this.Country));
                xml.Append("</Country>");
            }
            if (IsSetCPUManufacturer()) {
                xml.Append("<CPUManufacturer>");
                xml.Append(EscapeXML(this.CPUManufacturer));
                xml.Append("</CPUManufacturer>");
            }
            if (IsSetCPUSpeed()) {
                DecimalWithUnits  CPUSpeed = this.CPUSpeed;
                xml.Append("<CPUSpeed Units=" + "\"" +  EscapeXML(CPUSpeed.Units)  + "\"" +  ">");
                xml.Append(CPUSpeed.Value);
                xml.Append("</CPUSpeed>");
            }
            if (IsSetCPUType()) {
                xml.Append("<CPUType>");
                xml.Append(EscapeXML(this.CPUType));
                xml.Append("</CPUType>");
            }
            List<Creator> creatorList = this.Creator;
            foreach (Creator creator in creatorList) {
                xml.Append("<Creator Role=" + "\"" +  EscapeXML(creator.Role)  + "\"" +  ">");
                xml.Append(EscapeXML(creator.Value));
                xml.Append("</Creator>");
            }
            if (IsSetCuisine()) {
                xml.Append("<Cuisine>");
                xml.Append(EscapeXML(this.Cuisine));
                xml.Append("</Cuisine>");
            }
            List<String> dataLinkProtocolList  =  this.DataLinkProtocol;
            foreach (String dataLinkProtocol in dataLinkProtocolList) {
                xml.Append("<DataLinkProtocol>");
                xml.Append(EscapeXML(dataLinkProtocol));
                xml.Append("</DataLinkProtocol>");
            }
            if (IsSetDeliveryOption()) {
                xml.Append("<DeliveryOption>");
                xml.Append(EscapeXML(this.DeliveryOption));
                xml.Append("</DeliveryOption>");
            }
            if (IsSetDelayBetweenShots()) {
                DecimalWithUnits  delayBetweenShots = this.DelayBetweenShots;
                xml.Append("<DelayBetweenShots Units=" + "\"" +  EscapeXML(delayBetweenShots.Units)  + "\"" +  ">");
                xml.Append(delayBetweenShots.Value);
                xml.Append("</DelayBetweenShots>");
            }
            if (IsSetDepartment()) {
                xml.Append("<Department>");
                xml.Append(EscapeXML(this.Department));
                xml.Append("</Department>");
            }
            if (IsSetDeweyDecimalNumber()) {
                xml.Append("<DeweyDecimalNumber>");
                xml.Append(EscapeXML(this.DeweyDecimalNumber));
                xml.Append("</DeweyDecimalNumber>");
            }
            if (IsSetDialColor()) {
                xml.Append("<DialColor>");
                xml.Append(EscapeXML(this.DialColor));
                xml.Append("</DialColor>");
            }
            if (IsSetDialWindowMaterialType()) {
                xml.Append("<DialWindowMaterialType>");
                xml.Append(EscapeXML(this.DialWindowMaterialType));
                xml.Append("</DialWindowMaterialType>");
            }
            if (IsSetDigitalZoom()) {
                DecimalWithUnits  digitalZoom = this.DigitalZoom;
                xml.Append("<DigitalZoom Units=" + "\"" +  EscapeXML(digitalZoom.Units)  + "\"" +  ">");
                xml.Append(digitalZoom.Value);
                xml.Append("</DigitalZoom>");
            }
            List<String> directorList  =  this.Director;
            foreach (String director in directorList) {
                xml.Append("<Director>");
                xml.Append(EscapeXML(director));
                xml.Append("</Director>");
            }
            if (IsSetDisplayColorSupport()) {
                xml.Append("<DisplayColorSupport>");
                xml.Append(EscapeXML(this.DisplayColorSupport));
                xml.Append("</DisplayColorSupport>");
            }
            if (IsSetDisplaySize()) {
                DecimalWithUnits  displaySize = this.DisplaySize;
                xml.Append("<DisplaySize Units=" + "\"" +  EscapeXML(displaySize.Units)  + "\"" +  ">");
                xml.Append(displaySize.Value);
                xml.Append("</DisplaySize>");
            }
            if (IsSetDrumSetPieceQuantity()) {
                xml.Append("<DrumSetPieceQuantity>");
                xml.Append(this.DrumSetPieceQuantity);
                xml.Append("</DrumSetPieceQuantity>");
            }
            if (IsSetDVDLayers()) {
                xml.Append("<DVDLayers>");
                xml.Append(this.DVDLayers);
                xml.Append("</DVDLayers>");
            }
            if (IsSetDVDRWDescription()) {
                xml.Append("<DVDRWDescription>");
                xml.Append(EscapeXML(this.DVDRWDescription));
                xml.Append("</DVDRWDescription>");
            }
            if (IsSetDVDSides()) {
                xml.Append("<DVDSides>");
                xml.Append(this.DVDSides);
                xml.Append("</DVDSides>");
            }
            if (IsSetDPCI()) {
                xml.Append("<DPCI>");
                xml.Append(EscapeXML(this.DPCI));
                xml.Append("</DPCI>");
            }
            if (IsSetEAN()) {
                xml.Append("<EAN>");
                xml.Append(EscapeXML(this.EAN));
                xml.Append("</EAN>");
            }
            if (IsSetEdition()) {
                xml.Append("<Edition>");
                xml.Append(EscapeXML(this.Edition));
                xml.Append("</Edition>");
            }
            List<String> educationalFocusList  =  this.EducationalFocus;
            foreach (String educationalFocus in educationalFocusList) {
                xml.Append("<EducationalFocus>");
                xml.Append(EscapeXML(educationalFocus));
                xml.Append("</EducationalFocus>");
            }
            List<String> ethnicityList  =  this.Ethnicity;
            foreach (String ethnicity in ethnicityList) {
                xml.Append("<Ethnicity>");
                xml.Append(EscapeXML(ethnicity));
                xml.Append("</Ethnicity>");
            }
            if (IsSetESRBAgeRating()) {
                xml.Append("<ESRBAgeRating>");
                xml.Append(EscapeXML(this.ESRBAgeRating));
                xml.Append("</ESRBAgeRating>");
            }
            if (IsSetExternalDisplaySupportDescription()) {
                xml.Append("<ExternalDisplaySupportDescription>");
                xml.Append(EscapeXML(this.ExternalDisplaySupportDescription));
                xml.Append("</ExternalDisplaySupportDescription>");
            }
            if (IsSetFabricType()) {
                xml.Append("<FabricType>");
                xml.Append(EscapeXML(this.FabricType));
                xml.Append("</FabricType>");
            }
            if (IsSetFaxNumber()) {
                xml.Append("<FaxNumber>");
                xml.Append(EscapeXML(this.FaxNumber));
                xml.Append("</FaxNumber>");
            }
            List<String> featureList  =  this.Feature;
            foreach (String feature in featureList) {
                xml.Append("<Feature>");
                xml.Append(EscapeXML(feature));
                xml.Append("</Feature>");
            }
            if (IsSetFilmColorType()) {
                xml.Append("<FilmColorType>");
                xml.Append(EscapeXML(this.FilmColorType));
                xml.Append("</FilmColorType>");
            }
            if (IsSetFirstIssueLeadTime()) {
                StringWithUnits  firstIssueLeadTime = this.FirstIssueLeadTime;
                xml.Append("<FirstIssueLeadTime Units=" + "\"" +  EscapeXML(firstIssueLeadTime.Units)  + "\"" +  ">");
                xml.Append(EscapeXML(firstIssueLeadTime.Value));
                xml.Append("</FirstIssueLeadTime>");
            }
            if (IsSetFlavorName()) {
                xml.Append("<FlavorName>");
                xml.Append(EscapeXML(this.FlavorName));
                xml.Append("</FlavorName>");
            }
            if (IsSetFloppyDiskDriveDescription()) {
                xml.Append("<FloppyDiskDriveDescription>");
                xml.Append(EscapeXML(this.FloppyDiskDriveDescription));
                xml.Append("</FloppyDiskDriveDescription>");
            }
            List<String> formatList  =  this.Format;
            foreach (String format in formatList) {
                xml.Append("<Format>");
                xml.Append(EscapeXML(format));
                xml.Append("</Format>");
            }
            List<String> formFactorList  =  this.FormFactor;
            foreach (String formFactor in formFactorList) {
                xml.Append("<FormFactor>");
                xml.Append(EscapeXML(formFactor));
                xml.Append("</FormFactor>");
            }
            if (IsSetGemType()) {
                xml.Append("<GemType>");
                xml.Append(EscapeXML(this.GemType));
                xml.Append("</GemType>");
            }
            List<String> gemTypeSetElementList  =  this.GemTypeSetElement;
            foreach (String gemTypeSetElement in gemTypeSetElementList) {
                xml.Append("<GemTypeSetElement>");
                xml.Append(EscapeXML(gemTypeSetElement));
                xml.Append("</GemTypeSetElement>");
            }
            List<String> genderList  =  this.Gender;
            foreach (String gender in genderList) {
                xml.Append("<Gender>");
                xml.Append(EscapeXML(gender));
                xml.Append("</Gender>");
            }
            if (IsSetGenre()) {
                xml.Append("<Genre>");
                xml.Append(EscapeXML(this.Genre));
                xml.Append("</Genre>");
            }
            if (IsSetGLProductGroup()) {
                xml.Append("<GLProductGroup>");
                xml.Append(EscapeXML(this.GLProductGroup));
                xml.Append("</GLProductGroup>");
            }
            if (IsSetGolfClubFlex()) {
                xml.Append("<GolfClubFlex>");
                xml.Append(EscapeXML(this.GolfClubFlex));
                xml.Append("</GolfClubFlex>");
            }
            if (IsSetGolfClubLoft()) {
                xml.Append("<GolfClubLoft>");
                xml.Append(EscapeXML(this.GolfClubLoft));
                xml.Append("</GolfClubLoft>");
            }
            if (IsSetGraphicsCardInterface()) {
                xml.Append("<GraphicsCardInterface>");
                xml.Append(EscapeXML(this.GraphicsCardInterface));
                xml.Append("</GraphicsCardInterface>");
            }
            if (IsSetGraphicsDescription()) {
                xml.Append("<GraphicsDescription>");
                xml.Append(EscapeXML(this.GraphicsDescription));
                xml.Append("</GraphicsDescription>");
            }
            if (IsSetGraphicsMemorySize()) {
                DecimalWithUnits  graphicsMemorySize = this.GraphicsMemorySize;
                xml.Append("<GraphicsMemorySize Units=" + "\"" +  EscapeXML(graphicsMemorySize.Units)  + "\"" +  ">");
                xml.Append(graphicsMemorySize.Value);
                xml.Append("</GraphicsMemorySize>");
            }
            if (IsSetGuitarAttribute()) {
                xml.Append("<GuitarAttribute>");
                xml.Append(EscapeXML(this.GuitarAttribute));
                xml.Append("</GuitarAttribute>");
            }
            if (IsSetGuitarBridgeSystem()) {
                xml.Append("<GuitarBridgeSystem>");
                xml.Append(EscapeXML(this.GuitarBridgeSystem));
                xml.Append("</GuitarBridgeSystem>");
            }
            if (IsSetGuitarPickThickness()) {
                xml.Append("<GuitarPickThickness>");
                xml.Append(EscapeXML(this.GuitarPickThickness));
                xml.Append("</GuitarPickThickness>");
            }
            if (IsSetGuitarPickupConfiguration()) {
                xml.Append("<GuitarPickupConfiguration>");
                xml.Append(EscapeXML(this.GuitarPickupConfiguration));
                xml.Append("</GuitarPickupConfiguration>");
            }
            if (IsSetHandOrientation()) {
                xml.Append("<HandOrientation>");
                xml.Append(EscapeXML(this.HandOrientation));
                xml.Append("</HandOrientation>");
            }
            if (IsSetHardDiskCount()) {
                xml.Append("<HardDiskCount>");
                xml.Append(this.HardDiskCount);
                xml.Append("</HardDiskCount>");
            }
            if (IsSetHardDiskSize()) {
                DecimalWithUnits  hardDiskSize = this.HardDiskSize;
                xml.Append("<HardDiskSize Units=" + "\"" +  EscapeXML(hardDiskSize.Units)  + "\"" +  ">");
                xml.Append(hardDiskSize.Value);
                xml.Append("</HardDiskSize>");
            }
            if (IsSetHardDiskInterface()) {
                xml.Append("<HardDiskInterface>");
                xml.Append(EscapeXML(this.HardDiskInterface));
                xml.Append("</HardDiskInterface>");
            }
            if (IsSetHardwarePlatform()) {
                xml.Append("<HardwarePlatform>");
                xml.Append(EscapeXML(this.HardwarePlatform));
                xml.Append("</HardwarePlatform>");
            }
            if (IsSetHasAutoFocus()) {
                xml.Append("<HasAutoFocus>");
                xml.Append(this.HasAutoFocus);
                xml.Append("</HasAutoFocus>");
            }
            if (IsSetHasBurstMode()) {
                xml.Append("<HasBurstMode>");
                xml.Append(this.HasBurstMode);
                xml.Append("</HasBurstMode>");
            }
            if (IsSetHasInCameraEditing()) {
                xml.Append("<HasInCameraEditing>");
                xml.Append(this.HasInCameraEditing);
                xml.Append("</HasInCameraEditing>");
            }
            if (IsSetHasRedEyeReduction()) {
                xml.Append("<HasRedEyeReduction>");
                xml.Append(this.HasRedEyeReduction);
                xml.Append("</HasRedEyeReduction>");
            }
            if (IsSetHasSelfTimer()) {
                xml.Append("<HasSelfTimer>");
                xml.Append(this.HasSelfTimer);
                xml.Append("</HasSelfTimer>");
            }
            if (IsSetHasTripodMount()) {
                xml.Append("<HasTripodMount>");
                xml.Append(this.HasTripodMount);
                xml.Append("</HasTripodMount>");
            }
            if (IsSetHasVideoOut()) {
                xml.Append("<HasVideoOut>");
                xml.Append(this.HasVideoOut);
                xml.Append("</HasVideoOut>");
            }
            if (IsSetHasViewfinder()) {
                xml.Append("<HasViewfinder>");
                xml.Append(this.HasViewfinder);
                xml.Append("</HasViewfinder>");
            }
            if (IsSetHazardousMaterialType()) {
                xml.Append("<HazardousMaterialType>");
                xml.Append(EscapeXML(this.HazardousMaterialType));
                xml.Append("</HazardousMaterialType>");
            }
            if (IsSetHoursOfOperation()) {
                xml.Append("<HoursOfOperation>");
                xml.Append(EscapeXML(this.HoursOfOperation));
                xml.Append("</HoursOfOperation>");
            }
            if (IsSetIncludedSoftware()) {
                xml.Append("<IncludedSoftware>");
                xml.Append(EscapeXML(this.IncludedSoftware));
                xml.Append("</IncludedSoftware>");
            }
            if (IsSetIncludesMp3Player()) {
                xml.Append("<IncludesMp3Player>");
                xml.Append(this.IncludesMp3Player);
                xml.Append("</IncludesMp3Player>");
            }
            if (IsSetIngredients()) {
                xml.Append("<Ingredients>");
                xml.Append(EscapeXML(this.Ingredients));
                xml.Append("</Ingredients>");
            }
            List<String> ingredientsSetElementList  =  this.IngredientsSetElement;
            foreach (String ingredientsSetElement in ingredientsSetElementList) {
                xml.Append("<IngredientsSetElement>");
                xml.Append(EscapeXML(ingredientsSetElement));
                xml.Append("</IngredientsSetElement>");
            }
            if (IsSetInstrumentKey()) {
                xml.Append("<InstrumentKey>");
                xml.Append(EscapeXML(this.InstrumentKey));
                xml.Append("</InstrumentKey>");
            }
            List<String> interestList  =  this.Interest;
            foreach (String interest in interestList) {
                xml.Append("<Interest>");
                xml.Append(EscapeXML(interest));
                xml.Append("</Interest>");
            }
            if (IsSetIsAdultProduct()) {
                xml.Append("<IsAdultProduct>");
                xml.Append(this.IsAdultProduct);
                xml.Append("</IsAdultProduct>");
            }
            if (IsSetIsAutographed()) {
                xml.Append("<IsAutographed>");
                xml.Append(this.IsAutographed);
                xml.Append("</IsAutographed>");
            }
            if (IsSetISBN()) {
                xml.Append("<ISBN>");
                xml.Append(EscapeXML(this.ISBN));
                xml.Append("</ISBN>");
            }
            if (IsSetIsFragile()) {
                xml.Append("<IsFragile>");
                xml.Append(this.IsFragile);
                xml.Append("</IsFragile>");
            }
            if (IsSetIsLabCreated()) {
                xml.Append("<IsLabCreated>");
                xml.Append(this.IsLabCreated);
                xml.Append("</IsLabCreated>");
            }
            if (IsSetIsMemorabilia()) {
                xml.Append("<IsMemorabilia>");
                xml.Append(this.IsMemorabilia);
                xml.Append("</IsMemorabilia>");
            }
            if (IsSetISOEquivalent()) {
                NonNegativeIntegerWithUnits  ISOEquivalent = this.ISOEquivalent;
                xml.Append("<ISOEquivalent Units=" + "\"" +  EscapeXML(ISOEquivalent.Units)  + "\"" +  ">");
                xml.Append(ISOEquivalent.Value);
                xml.Append("</ISOEquivalent>");
            }
            if (IsSetIsPreannounce()) {
                xml.Append("<IsPreannounce>");
                xml.Append(this.IsPreannounce);
                xml.Append("</IsPreannounce>");
            }
            if (IsSetIssuesPerYear()) {
                xml.Append("<IssuesPerYear>");
                xml.Append(EscapeXML(this.IssuesPerYear));
                xml.Append("</IssuesPerYear>");
            }
            if (IsSetItemDimensions()) {
                ItemDimensions  itemDimensions = this.ItemDimensions;
                xml.Append("<ItemDimensions>");
                xml.Append(itemDimensions.ToXMLFragment());
                xml.Append("</ItemDimensions>");
            }
            if (IsSetKeyboardDescription()) {
                xml.Append("<KeyboardDescription>");
                xml.Append(EscapeXML(this.KeyboardDescription));
                xml.Append("</KeyboardDescription>");
            }
            if (IsSetLabel()) {
                xml.Append("<Label>");
                xml.Append(EscapeXML(this.Label));
                xml.Append("</Label>");
            }
            List<String> languageNameList  =  this.LanguageName;
            foreach (String languageName in languageNameList) {
                xml.Append("<LanguageName>");
                xml.Append(EscapeXML(languageName));
                xml.Append("</LanguageName>");
            }
            if (IsSetLanguages()) {
                Languages  languages = this.Languages;
                xml.Append("<Languages>");
                xml.Append(languages.ToXMLFragment());
                xml.Append("</Languages>");
            }
            if (IsSetLegalDisclaimer()) {
                xml.Append("<LegalDisclaimer>");
                xml.Append(EscapeXML(this.LegalDisclaimer));
                xml.Append("</LegalDisclaimer>");
            }
            if (IsSetLensType()) {
                xml.Append("<LensType>");
                xml.Append(EscapeXML(this.LensType));
                xml.Append("</LensType>");
            }
            if (IsSetLineVoltage()) {
                xml.Append("<LineVoltage>");
                xml.Append(EscapeXML(this.LineVoltage));
                xml.Append("</LineVoltage>");
            }
            if (IsSetListPrice()) {
                Price  listPrice = this.ListPrice;
                xml.Append("<ListPrice>");
                xml.Append(listPrice.ToXMLFragment());
                xml.Append("</ListPrice>");
            }
            if (IsSetMacroFocusRange()) {
                xml.Append("<MacroFocusRange>");
                xml.Append(EscapeXML(this.MacroFocusRange));
                xml.Append("</MacroFocusRange>");
            }
            if (IsSetMagazineType()) {
                xml.Append("<MagazineType>");
                xml.Append(EscapeXML(this.MagazineType));
                xml.Append("</MagazineType>");
            }
            if (IsSetMalletHardness()) {
                xml.Append("<MalletHardness>");
                xml.Append(EscapeXML(this.MalletHardness));
                xml.Append("</MalletHardness>");
            }
            if (IsSetManufacturer()) {
                xml.Append("<Manufacturer>");
                xml.Append(EscapeXML(this.Manufacturer));
                xml.Append("</Manufacturer>");
            }
            if (IsSetManufacturerLaborWarrantyDescription()) {
                xml.Append("<ManufacturerLaborWarrantyDescription>");
                xml.Append(EscapeXML(this.ManufacturerLaborWarrantyDescription));
                xml.Append("</ManufacturerLaborWarrantyDescription>");
            }
            if (IsSetManufacturerMaximumAge()) {
                DecimalWithUnits  manufacturerMaximumAge = this.ManufacturerMaximumAge;
                xml.Append("<ManufacturerMaximumAge Units=" + "\"" +  EscapeXML(manufacturerMaximumAge.Units)  + "\"" +  ">");
                xml.Append(manufacturerMaximumAge.Value);
                xml.Append("</ManufacturerMaximumAge>");
            }
            if (IsSetManufacturerMinimumAge()) {
                DecimalWithUnits  manufacturerMinimumAge = this.ManufacturerMinimumAge;
                xml.Append("<ManufacturerMinimumAge Units=" + "\"" +  EscapeXML(manufacturerMinimumAge.Units)  + "\"" +  ">");
                xml.Append(manufacturerMinimumAge.Value);
                xml.Append("</ManufacturerMinimumAge>");
            }
            if (IsSetManufacturerPartsWarrantyDescription()) {
                xml.Append("<ManufacturerPartsWarrantyDescription>");
                xml.Append(EscapeXML(this.ManufacturerPartsWarrantyDescription));
                xml.Append("</ManufacturerPartsWarrantyDescription>");
            }
            if (IsSetMaterialType()) {
                xml.Append("<MaterialType>");
                xml.Append(EscapeXML(this.MaterialType));
                xml.Append("</MaterialType>");
            }
            List<String> materialTypeSetElementList  =  this.MaterialTypeSetElement;
            foreach (String materialTypeSetElement in materialTypeSetElementList) {
                xml.Append("<MaterialTypeSetElement>");
                xml.Append(EscapeXML(materialTypeSetElement));
                xml.Append("</MaterialTypeSetElement>");
            }
            if (IsSetMaximumAperture()) {
                DecimalWithUnits  maximumAperture = this.MaximumAperture;
                xml.Append("<MaximumAperture Units=" + "\"" +  EscapeXML(maximumAperture.Units)  + "\"" +  ">");
                xml.Append(maximumAperture.Value);
                xml.Append("</MaximumAperture>");
            }
            if (IsSetMaximumColorDepth()) {
                xml.Append("<MaximumColorDepth>");
                xml.Append(EscapeXML(this.MaximumColorDepth));
                xml.Append("</MaximumColorDepth>");
            }
            if (IsSetMaximumFocalLength()) {
                DecimalWithUnits  maximumFocalLength = this.MaximumFocalLength;
                xml.Append("<MaximumFocalLength Units=" + "\"" +  EscapeXML(maximumFocalLength.Units)  + "\"" +  ">");
                xml.Append(maximumFocalLength.Value);
                xml.Append("</MaximumFocalLength>");
            }
            if (IsSetMaximumHighResolutionImages()) {
                NonNegativeIntegerWithUnits  maximumHighResolutionImages = this.MaximumHighResolutionImages;
                xml.Append("<MaximumHighResolutionImages Units=" + "\"" +  EscapeXML(maximumHighResolutionImages.Units)  + "\"" +  ">");
                xml.Append(maximumHighResolutionImages.Value);
                xml.Append("</MaximumHighResolutionImages>");
            }
            if (IsSetMaximumHorizontalResolution()) {
                NonNegativeIntegerWithUnits  maximumHorizontalResolution = this.MaximumHorizontalResolution;
                xml.Append("<MaximumHorizontalResolution Units=" + "\"" +  EscapeXML(maximumHorizontalResolution.Units)  + "\"" +  ">");
                xml.Append(maximumHorizontalResolution.Value);
                xml.Append("</MaximumHorizontalResolution>");
            }
            if (IsSetMaximumLowResolutionImages()) {
                xml.Append("<MaximumLowResolutionImages>");
                xml.Append(EscapeXML(this.MaximumLowResolutionImages));
                xml.Append("</MaximumLowResolutionImages>");
            }
            if (IsSetMaximumResolution()) {
                DecimalWithUnits  maximumResolution = this.MaximumResolution;
                xml.Append("<MaximumResolution Units=" + "\"" +  EscapeXML(maximumResolution.Units)  + "\"" +  ">");
                xml.Append(maximumResolution.Value);
                xml.Append("</MaximumResolution>");
            }
            if (IsSetMaximumShutterSpeed()) {
                DecimalWithUnits  maximumShutterSpeed = this.MaximumShutterSpeed;
                xml.Append("<MaximumShutterSpeed Units=" + "\"" +  EscapeXML(maximumShutterSpeed.Units)  + "\"" +  ">");
                xml.Append(maximumShutterSpeed.Value);
                xml.Append("</MaximumShutterSpeed>");
            }
            if (IsSetMaximumVerticalResolution()) {
                NonNegativeIntegerWithUnits  maximumVerticalResolution = this.MaximumVerticalResolution;
                xml.Append("<MaximumVerticalResolution Units=" + "\"" +  EscapeXML(maximumVerticalResolution.Units)  + "\"" +  ">");
                xml.Append(maximumVerticalResolution.Value);
                xml.Append("</MaximumVerticalResolution>");
            }
            if (IsSetMaximumWeightRecommendation()) {
                DecimalWithUnits  maximumWeightRecommendation = this.MaximumWeightRecommendation;
                xml.Append("<MaximumWeightRecommendation Units=" + "\"" +  EscapeXML(maximumWeightRecommendation.Units)  + "\"" +  ">");
                xml.Append(maximumWeightRecommendation.Value);
                xml.Append("</MaximumWeightRecommendation>");
            }
            if (IsSetMediaType()) {
                xml.Append("<MediaType>");
                xml.Append(EscapeXML(this.MediaType));
                xml.Append("</MediaType>");
            }
            if (IsSetMemorySlotsAvailable()) {
                xml.Append("<MemorySlotsAvailable>");
                xml.Append(EscapeXML(this.MemorySlotsAvailable));
                xml.Append("</MemorySlotsAvailable>");
            }
            if (IsSetMetalStamp()) {
                xml.Append("<MetalStamp>");
                xml.Append(EscapeXML(this.MetalStamp));
                xml.Append("</MetalStamp>");
            }
            if (IsSetMetalType()) {
                xml.Append("<MetalType>");
                xml.Append(EscapeXML(this.MetalType));
                xml.Append("</MetalType>");
            }
            if (IsSetMiniMovieDescription()) {
                xml.Append("<MiniMovieDescription>");
                xml.Append(EscapeXML(this.MiniMovieDescription));
                xml.Append("</MiniMovieDescription>");
            }
            if (IsSetMinimumFocalLength()) {
                DecimalWithUnits  minimumFocalLength = this.MinimumFocalLength;
                xml.Append("<MinimumFocalLength Units=" + "\"" +  EscapeXML(minimumFocalLength.Units)  + "\"" +  ">");
                xml.Append(minimumFocalLength.Value);
                xml.Append("</MinimumFocalLength>");
            }
            if (IsSetMinimumShutterSpeed()) {
                DecimalWithUnits  minimumShutterSpeed = this.MinimumShutterSpeed;
                xml.Append("<MinimumShutterSpeed Units=" + "\"" +  EscapeXML(minimumShutterSpeed.Units)  + "\"" +  ">");
                xml.Append(minimumShutterSpeed.Value);
                xml.Append("</MinimumShutterSpeed>");
            }
            if (IsSetModel()) {
                xml.Append("<Model>");
                xml.Append(EscapeXML(this.Model));
                xml.Append("</Model>");
            }
            if (IsSetModelYear()) {
                xml.Append("<ModelYear>");
                xml.Append(this.ModelYear);
                xml.Append("</ModelYear>");
            }
            if (IsSetModemDescription()) {
                xml.Append("<ModemDescription>");
                xml.Append(EscapeXML(this.ModemDescription));
                xml.Append("</ModemDescription>");
            }
            if (IsSetMonitorSize()) {
                DecimalWithUnits  monitorSize = this.MonitorSize;
                xml.Append("<MonitorSize Units=" + "\"" +  EscapeXML(monitorSize.Units)  + "\"" +  ">");
                xml.Append(monitorSize.Value);
                xml.Append("</MonitorSize>");
            }
            if (IsSetMonitorViewableDiagonalSize()) {
                DecimalWithUnits  monitorViewableDiagonalSize = this.MonitorViewableDiagonalSize;
                xml.Append("<MonitorViewableDiagonalSize Units=" + "\"" +  EscapeXML(monitorViewableDiagonalSize.Units)  + "\"" +  ">");
                xml.Append(monitorViewableDiagonalSize.Value);
                xml.Append("</MonitorViewableDiagonalSize>");
            }
            if (IsSetMouseDescription()) {
                xml.Append("<MouseDescription>");
                xml.Append(EscapeXML(this.MouseDescription));
                xml.Append("</MouseDescription>");
            }
            if (IsSetMPN()) {
                xml.Append("<MPN>");
                xml.Append(EscapeXML(this.MPN));
                xml.Append("</MPN>");
            }
            if (IsSetMusicalStyle()) {
                xml.Append("<MusicalStyle>");
                xml.Append(EscapeXML(this.MusicalStyle));
                xml.Append("</MusicalStyle>");
            }
            if (IsSetNativeResolution()) {
                xml.Append("<NativeResolution>");
                xml.Append(EscapeXML(this.NativeResolution));
                xml.Append("</NativeResolution>");
            }
            if (IsSetNeighborhood()) {
                xml.Append("<Neighborhood>");
                xml.Append(EscapeXML(this.Neighborhood));
                xml.Append("</Neighborhood>");
            }
            if (IsSetNetworkInterfaceDescription()) {
                xml.Append("<NetworkInterfaceDescription>");
                xml.Append(EscapeXML(this.NetworkInterfaceDescription));
                xml.Append("</NetworkInterfaceDescription>");
            }
            if (IsSetNotebookDisplayTechnology()) {
                xml.Append("<NotebookDisplayTechnology>");
                xml.Append(EscapeXML(this.NotebookDisplayTechnology));
                xml.Append("</NotebookDisplayTechnology>");
            }
            if (IsSetNotebookPointingDeviceDescription()) {
                xml.Append("<NotebookPointingDeviceDescription>");
                xml.Append(EscapeXML(this.NotebookPointingDeviceDescription));
                xml.Append("</NotebookPointingDeviceDescription>");
            }
            if (IsSetNumberOfDiscs()) {
                xml.Append("<NumberOfDiscs>");
                xml.Append(this.NumberOfDiscs);
                xml.Append("</NumberOfDiscs>");
            }
            if (IsSetNumberOfIssues()) {
                xml.Append("<NumberOfIssues>");
                xml.Append(this.NumberOfIssues);
                xml.Append("</NumberOfIssues>");
            }
            if (IsSetNumberOfItems()) {
                xml.Append("<NumberOfItems>");
                xml.Append(this.NumberOfItems);
                xml.Append("</NumberOfItems>");
            }
            if (IsSetNumberOfKeys()) {
                xml.Append("<NumberOfKeys>");
                xml.Append(this.NumberOfKeys);
                xml.Append("</NumberOfKeys>");
            }
            if (IsSetNumberOfPages()) {
                xml.Append("<NumberOfPages>");
                xml.Append(this.NumberOfPages);
                xml.Append("</NumberOfPages>");
            }
            if (IsSetNumberOfPearls()) {
                xml.Append("<NumberOfPearls>");
                xml.Append(this.NumberOfPearls);
                xml.Append("</NumberOfPearls>");
            }
            if (IsSetNumberOfRapidFireShots()) {
                xml.Append("<NumberOfRapidFireShots>");
                xml.Append(this.NumberOfRapidFireShots);
                xml.Append("</NumberOfRapidFireShots>");
            }
            if (IsSetNumberOfStones()) {
                xml.Append("<NumberOfStones>");
                xml.Append(this.NumberOfStones);
                xml.Append("</NumberOfStones>");
            }
            if (IsSetNumberOfStrings()) {
                xml.Append("<NumberOfStrings>");
                xml.Append(this.NumberOfStrings);
                xml.Append("</NumberOfStrings>");
            }
            if (IsSetNumberOfTracks()) {
                xml.Append("<NumberOfTracks>");
                xml.Append(this.NumberOfTracks);
                xml.Append("</NumberOfTracks>");
            }
            if (IsSetOperatingSystem()) {
                xml.Append("<OperatingSystem>");
                xml.Append(EscapeXML(this.OperatingSystem));
                xml.Append("</OperatingSystem>");
            }
            if (IsSetOpticalSensorResolution()) {
                DecimalWithUnits  opticalSensorResolution = this.OpticalSensorResolution;
                xml.Append("<OpticalSensorResolution Units=" + "\"" +  EscapeXML(opticalSensorResolution.Units)  + "\"" +  ">");
                xml.Append(opticalSensorResolution.Value);
                xml.Append("</OpticalSensorResolution>");
            }
            if (IsSetOpticalZoom()) {
                DecimalWithUnits  opticalZoom = this.OpticalZoom;
                xml.Append("<OpticalZoom Units=" + "\"" +  EscapeXML(opticalZoom.Units)  + "\"" +  ">");
                xml.Append(opticalZoom.Value);
                xml.Append("</OpticalZoom>");
            }
            if (IsSetOriginalReleaseDate()) {
                xml.Append("<OriginalReleaseDate>");
                xml.Append(EscapeXML(this.OriginalReleaseDate));
                xml.Append("</OriginalReleaseDate>");
            }
            if (IsSetOutputWattage()) {
                xml.Append("<OutputWattage>");
                xml.Append(this.OutputWattage);
                xml.Append("</OutputWattage>");
            }
            if (IsSetPackageDimensions()) {
                PackageDimensions  packageDimensions = this.PackageDimensions;
                xml.Append("<PackageDimensions>");
                xml.Append(packageDimensions.ToXMLFragment());
                xml.Append("</PackageDimensions>");
            }
            if (IsSetPackageQuantity()) {
                xml.Append("<PackageQuantity>");
                xml.Append(this.PackageQuantity);
                xml.Append("</PackageQuantity>");
            }
            List<String> pantLengthList  =  this.PantLength;
            foreach (String pantLength in pantLengthList) {
                xml.Append("<PantLength>");
                xml.Append(EscapeXML(pantLength));
                xml.Append("</PantLength>");
            }
            List<String> pantSizeList  =  this.PantSize;
            foreach (String pantSize in pantSizeList) {
                xml.Append("<PantSize>");
                xml.Append(EscapeXML(pantSize));
                xml.Append("</PantSize>");
            }
            if (IsSetPearlLustre()) {
                xml.Append("<PearlLustre>");
                xml.Append(EscapeXML(this.PearlLustre));
                xml.Append("</PearlLustre>");
            }
            if (IsSetPearlMinimumColor()) {
                xml.Append("<PearlMinimumColor>");
                xml.Append(EscapeXML(this.PearlMinimumColor));
                xml.Append("</PearlMinimumColor>");
            }
            if (IsSetPearlShape()) {
                xml.Append("<PearlShape>");
                xml.Append(EscapeXML(this.PearlShape));
                xml.Append("</PearlShape>");
            }
            if (IsSetPearlStringingMethod()) {
                xml.Append("<PearlStringingMethod>");
                xml.Append(EscapeXML(this.PearlStringingMethod));
                xml.Append("</PearlStringingMethod>");
            }
            if (IsSetPearlSurfaceBlemishes()) {
                xml.Append("<PearlSurfaceBlemishes>");
                xml.Append(EscapeXML(this.PearlSurfaceBlemishes));
                xml.Append("</PearlSurfaceBlemishes>");
            }
            if (IsSetPearlType()) {
                xml.Append("<PearlType>");
                xml.Append(EscapeXML(this.PearlType));
                xml.Append("</PearlType>");
            }
            if (IsSetPearlUniformity()) {
                xml.Append("<PearlUniformity>");
                xml.Append(EscapeXML(this.PearlUniformity));
                xml.Append("</PearlUniformity>");
            }
            if (IsSetPhoneNumber()) {
                xml.Append("<PhoneNumber>");
                xml.Append(EscapeXML(this.PhoneNumber));
                xml.Append("</PhoneNumber>");
            }
            List<String> photoFlashTypeList  =  this.PhotoFlashType;
            foreach (String photoFlashType in photoFlashTypeList) {
                xml.Append("<PhotoFlashType>");
                xml.Append(EscapeXML(photoFlashType));
                xml.Append("</PhotoFlashType>");
            }
            List<String> pictureFormatList  =  this.PictureFormat;
            foreach (String pictureFormat in pictureFormatList) {
                xml.Append("<PictureFormat>");
                xml.Append(EscapeXML(pictureFormat));
                xml.Append("</PictureFormat>");
            }
            List<String> platformList  =  this.Platform;
            foreach (String platform in platformList) {
                xml.Append("<Platform>");
                xml.Append(EscapeXML(platform));
                xml.Append("</Platform>");
            }
            if (IsSetPriceRating()) {
                xml.Append("<PriceRating>");
                xml.Append(this.PriceRating);
                xml.Append("</PriceRating>");
            }
            List<String> primaryColorList  =  this.PrimaryColor;
            foreach (String primaryColor in primaryColorList) {
                xml.Append("<PrimaryColor>");
                xml.Append(EscapeXML(primaryColor));
                xml.Append("</PrimaryColor>");
            }
            if (IsSetProcessorCount()) {
                xml.Append("<ProcessorCount>");
                xml.Append(this.ProcessorCount);
                xml.Append("</ProcessorCount>");
            }
            if (IsSetProductGroup()) {
                xml.Append("<ProductGroup>");
                xml.Append(EscapeXML(this.ProductGroup));
                xml.Append("</ProductGroup>");
            }
            if (IsSetProductSiteLaunchDate()) {
                xml.Append("<ProductSiteLaunchDate>");
                xml.Append(EscapeXML(this.ProductSiteLaunchDate));
                xml.Append("</ProductSiteLaunchDate>");
            }
            if (IsSetProductTypeName()) {
                xml.Append("<ProductTypeName>");
                xml.Append(EscapeXML(this.ProductTypeName));
                xml.Append("</ProductTypeName>");
            }
            if (IsSetProductTypeSubcategory()) {
                xml.Append("<ProductTypeSubcategory>");
                xml.Append(EscapeXML(this.ProductTypeSubcategory));
                xml.Append("</ProductTypeSubcategory>");
            }
            if (IsSetPromotionalTag()) {
                xml.Append("<PromotionalTag>");
                xml.Append(EscapeXML(this.PromotionalTag));
                xml.Append("</PromotionalTag>");
            }
            if (IsSetPublicationDate()) {
                xml.Append("<PublicationDate>");
                xml.Append(EscapeXML(this.PublicationDate));
                xml.Append("</PublicationDate>");
            }
            if (IsSetPublisher()) {
                xml.Append("<Publisher>");
                xml.Append(EscapeXML(this.Publisher));
                xml.Append("</Publisher>");
            }
            if (IsSetPOBoxShippingExcluded()) {
                xml.Append("<POBoxShippingExcluded>");
                xml.Append(EscapeXML(this.POBoxShippingExcluded));
                xml.Append("</POBoxShippingExcluded>");
            }
            if (IsSetReadingLevel()) {
                xml.Append("<ReadingLevel>");
                xml.Append(EscapeXML(this.ReadingLevel));
                xml.Append("</ReadingLevel>");
            }
            List<String> returnMethodList  =  this.ReturnMethod;
            foreach (String returnMethod in returnMethodList) {
                xml.Append("<ReturnMethod>");
                xml.Append(EscapeXML(returnMethod));
                xml.Append("</ReturnMethod>");
            }
            if (IsSetRecorderTrackCount()) {
                xml.Append("<RecorderTrackCount>");
                xml.Append(this.RecorderTrackCount);
                xml.Append("</RecorderTrackCount>");
            }
            if (IsSetRegionCode()) {
                xml.Append("<RegionCode>");
                xml.Append(EscapeXML(this.RegionCode));
                xml.Append("</RegionCode>");
            }
            if (IsSetRegionOfOrigin()) {
                xml.Append("<RegionOfOrigin>");
                xml.Append(EscapeXML(this.RegionOfOrigin));
                xml.Append("</RegionOfOrigin>");
            }
            if (IsSetReturnPolicy()) {
                xml.Append("<ReturnPolicy>");
                xml.Append(EscapeXML(this.ReturnPolicy));
                xml.Append("</ReturnPolicy>");
            }
            if (IsSetReleaseDate()) {
                xml.Append("<ReleaseDate>");
                xml.Append(EscapeXML(this.ReleaseDate));
                xml.Append("</ReleaseDate>");
            }
            if (IsSetRemovableMemory()) {
                xml.Append("<RemovableMemory>");
                xml.Append(EscapeXML(this.RemovableMemory));
                xml.Append("</RemovableMemory>");
            }
            if (IsSetRemovableStorage()) {
                xml.Append("<RemovableStorage>");
                xml.Append(EscapeXML(this.RemovableStorage));
                xml.Append("</RemovableStorage>");
            }
            if (IsSetRequiredVoltageRange()) {
                xml.Append("<RequiredVoltageRange>");
                xml.Append(EscapeXML(this.RequiredVoltageRange));
                xml.Append("</RequiredVoltageRange>");
            }
            if (IsSetResolutionModes()) {
                xml.Append("<ResolutionModes>");
                xml.Append(EscapeXML(this.ResolutionModes));
                xml.Append("</ResolutionModes>");
            }
            if (IsSetRingSize()) {
                xml.Append("<RingSize>");
                xml.Append(EscapeXML(this.RingSize));
                xml.Append("</RingSize>");
            }
            if (IsSetRunningTime()) {
                DecimalWithUnits  runningTime = this.RunningTime;
                xml.Append("<RunningTime Units=" + "\"" +  EscapeXML(runningTime.Units)  + "\"" +  ">");
                xml.Append(runningTime.Value);
                xml.Append("</RunningTime>");
            }
            if (IsSetScentName()) {
                xml.Append("<ScentName>");
                xml.Append(EscapeXML(this.ScentName));
                xml.Append("</ScentName>");
            }
            if (IsSetSecondaryCacheSize()) {
                NonNegativeIntegerWithUnits  secondaryCacheSize = this.SecondaryCacheSize;
                xml.Append("<SecondaryCacheSize Units=" + "\"" +  EscapeXML(secondaryCacheSize.Units)  + "\"" +  ">");
                xml.Append(secondaryCacheSize.Value);
                xml.Append("</SecondaryCacheSize>");
            }
            if (IsSetSettingType()) {
                xml.Append("<SettingType>");
                xml.Append(EscapeXML(this.SettingType));
                xml.Append("</SettingType>");
            }
            if (IsSetShaftMaterialType()) {
                xml.Append("<ShaftMaterialType>");
                xml.Append(EscapeXML(this.ShaftMaterialType));
                xml.Append("</ShaftMaterialType>");
            }
            List<String> shoeSizeList  =  this.ShoeSize;
            foreach (String shoeSize in shoeSizeList) {
                xml.Append("<ShoeSize>");
                xml.Append(EscapeXML(shoeSize));
                xml.Append("</ShoeSize>");
            }
            if (IsSetSize()) {
                xml.Append("<Size>");
                xml.Append(EscapeXML(this.Size));
                xml.Append("</Size>");
            }
            if (IsSetSizePerPearl()) {
                xml.Append("<SizePerPearl>");
                xml.Append(EscapeXML(this.SizePerPearl));
                xml.Append("</SizePerPearl>");
            }
            if (IsSetSkillLevel()) {
                xml.Append("<SkillLevel>");
                xml.Append(EscapeXML(this.SkillLevel));
                xml.Append("</SkillLevel>");
            }
            if (IsSetSKU()) {
                xml.Append("<SKU>");
                xml.Append(EscapeXML(this.SKU));
                xml.Append("</SKU>");
            }
            if (IsSetSoldInStores()) {
                xml.Append("<SoldInStores>");
                xml.Append(EscapeXML(this.SoldInStores));
                xml.Append("</SoldInStores>");
            }
            if (IsSetSoundCardDescription()) {
                xml.Append("<SoundCardDescription>");
                xml.Append(EscapeXML(this.SoundCardDescription));
                xml.Append("</SoundCardDescription>");
            }
            if (IsSetSpeakerCount()) {
                xml.Append("<SpeakerCount>");
                xml.Append(this.SpeakerCount);
                xml.Append("</SpeakerCount>");
            }
            if (IsSetSpeakerDescription()) {
                xml.Append("<SpeakerDescription>");
                xml.Append(EscapeXML(this.SpeakerDescription));
                xml.Append("</SpeakerDescription>");
            }
            List<String> specialFeaturesList  =  this.SpecialFeatures;
            foreach (String specialFeatures in specialFeaturesList) {
                xml.Append("<SpecialFeatures>");
                xml.Append(EscapeXML(specialFeatures));
                xml.Append("</SpecialFeatures>");
            }
            if (IsSetStoneClarity()) {
                xml.Append("<StoneClarity>");
                xml.Append(EscapeXML(this.StoneClarity));
                xml.Append("</StoneClarity>");
            }
            if (IsSetStoneColor()) {
                xml.Append("<StoneColor>");
                xml.Append(EscapeXML(this.StoneColor));
                xml.Append("</StoneColor>");
            }
            if (IsSetStoneCut()) {
                xml.Append("<StoneCut>");
                xml.Append(EscapeXML(this.StoneCut));
                xml.Append("</StoneCut>");
            }
            if (IsSetStoneShape()) {
                xml.Append("<StoneShape>");
                xml.Append(EscapeXML(this.StoneShape));
                xml.Append("</StoneShape>");
            }
            if (IsSetStoneWeight()) {
                DecimalWithUnits  stoneWeight = this.StoneWeight;
                xml.Append("<StoneWeight Units=" + "\"" +  EscapeXML(stoneWeight.Units)  + "\"" +  ">");
                xml.Append(stoneWeight.Value);
                xml.Append("</StoneWeight>");
            }
            if (IsSetStudio()) {
                xml.Append("<Studio>");
                xml.Append(EscapeXML(this.Studio));
                xml.Append("</Studio>");
            }
            if (IsSetStyle()) {
                xml.Append("<Style>");
                xml.Append(EscapeXML(this.Style));
                xml.Append("</Style>");
            }
            if (IsSetSubscriptionLength()) {
                NonNegativeIntegerWithUnits  subscriptionLength = this.SubscriptionLength;
                xml.Append("<SubscriptionLength Units=" + "\"" +  EscapeXML(subscriptionLength.Units)  + "\"" +  ">");
                xml.Append(subscriptionLength.Value);
                xml.Append("</SubscriptionLength>");
            }
            List<String> supportedImageTypeList  =  this.SupportedImageType;
            foreach (String supportedImageType in supportedImageTypeList) {
                xml.Append("<SupportedImageType>");
                xml.Append(EscapeXML(supportedImageType));
                xml.Append("</SupportedImageType>");
            }
            if (IsSetSupportedMediaSize()) {
                xml.Append("<SupportedMediaSize>");
                xml.Append(EscapeXML(this.SupportedMediaSize));
                xml.Append("</SupportedMediaSize>");
            }
            if (IsSetSystemBusSpeed()) {
                DecimalWithUnits  systemBusSpeed = this.SystemBusSpeed;
                xml.Append("<SystemBusSpeed Units=" + "\"" +  EscapeXML(systemBusSpeed.Units)  + "\"" +  ">");
                xml.Append(systemBusSpeed.Value);
                xml.Append("</SystemBusSpeed>");
            }
            if (IsSetSystemMemorySizeMax()) {
                DecimalWithUnits  systemMemorySizeMax = this.SystemMemorySizeMax;
                xml.Append("<SystemMemorySizeMax Units=" + "\"" +  EscapeXML(systemMemorySizeMax.Units)  + "\"" +  ">");
                xml.Append(systemMemorySizeMax.Value);
                xml.Append("</SystemMemorySizeMax>");
            }
            if (IsSetSystemMemorySize()) {
                DecimalWithUnits  systemMemorySize = this.SystemMemorySize;
                xml.Append("<SystemMemorySize Units=" + "\"" +  EscapeXML(systemMemorySize.Units)  + "\"" +  ">");
                xml.Append(systemMemorySize.Value);
                xml.Append("</SystemMemorySize>");
            }
            if (IsSetSystemMemoryType()) {
                xml.Append("<SystemMemoryType>");
                xml.Append(EscapeXML(this.SystemMemoryType));
                xml.Append("</SystemMemoryType>");
            }
            List<String> targetBrandList  =  this.TargetBrand;
            foreach (String targetBrand in targetBrandList) {
                xml.Append("<TargetBrand>");
                xml.Append(EscapeXML(targetBrand));
                xml.Append("</TargetBrand>");
            }
            if (IsSetTellingPageIndicator()) {
                xml.Append("<TellingPageIndicator>");
                xml.Append(EscapeXML(this.TellingPageIndicator));
                xml.Append("</TellingPageIndicator>");
            }
            if (IsSetTheatricalReleaseDate()) {
                xml.Append("<TheatricalReleaseDate>");
                xml.Append(EscapeXML(this.TheatricalReleaseDate));
                xml.Append("</TheatricalReleaseDate>");
            }
            if (IsSetTitle()) {
                xml.Append("<Title>");
                xml.Append(EscapeXML(this.Title));
                xml.Append("</Title>");
            }
            if (IsSetTotalDiamondWeight()) {
                DecimalWithUnits  totalDiamondWeight = this.TotalDiamondWeight;
                xml.Append("<TotalDiamondWeight Units=" + "\"" +  EscapeXML(totalDiamondWeight.Units)  + "\"" +  ">");
                xml.Append(totalDiamondWeight.Value);
                xml.Append("</TotalDiamondWeight>");
            }
            if (IsSetTotalExternalBaysFree()) {
                xml.Append("<TotalExternalBaysFree>");
                xml.Append(this.TotalExternalBaysFree);
                xml.Append("</TotalExternalBaysFree>");
            }
            if (IsSetTotalFirewirePorts()) {
                xml.Append("<TotalFirewirePorts>");
                xml.Append(this.TotalFirewirePorts);
                xml.Append("</TotalFirewirePorts>");
            }
            if (IsSetTotalGemWeight()) {
                DecimalWithUnits  totalGemWeight = this.TotalGemWeight;
                xml.Append("<TotalGemWeight Units=" + "\"" +  EscapeXML(totalGemWeight.Units)  + "\"" +  ">");
                xml.Append(totalGemWeight.Value);
                xml.Append("</TotalGemWeight>");
            }
            if (IsSetTotalInternalBaysFree()) {
                xml.Append("<TotalInternalBaysFree>");
                xml.Append(this.TotalInternalBaysFree);
                xml.Append("</TotalInternalBaysFree>");
            }
            if (IsSetTotalMetalWeight()) {
                DecimalWithUnits  totalMetalWeight = this.TotalMetalWeight;
                xml.Append("<TotalMetalWeight Units=" + "\"" +  EscapeXML(totalMetalWeight.Units)  + "\"" +  ">");
                xml.Append(totalMetalWeight.Value);
                xml.Append("</TotalMetalWeight>");
            }
            if (IsSetTotalNTSCPALPorts()) {
                xml.Append("<TotalNTSCPALPorts>");
                xml.Append(this.TotalNTSCPALPorts);
                xml.Append("</TotalNTSCPALPorts>");
            }
            if (IsSetTotalParallelPorts()) {
                xml.Append("<TotalParallelPorts>");
                xml.Append(this.TotalParallelPorts);
                xml.Append("</TotalParallelPorts>");
            }
            if (IsSetTotalPCCardSlots()) {
                xml.Append("<TotalPCCardSlots>");
                xml.Append(this.TotalPCCardSlots);
                xml.Append("</TotalPCCardSlots>");
            }
            if (IsSetTotalPCISlotsFree()) {
                xml.Append("<TotalPCISlotsFree>");
                xml.Append(this.TotalPCISlotsFree);
                xml.Append("</TotalPCISlotsFree>");
            }
            if (IsSetTotalSerialPorts()) {
                xml.Append("<TotalSerialPorts>");
                xml.Append(this.TotalSerialPorts);
                xml.Append("</TotalSerialPorts>");
            }
            if (IsSetTotalSVideoOutPorts()) {
                xml.Append("<TotalSVideoOutPorts>");
                xml.Append(this.TotalSVideoOutPorts);
                xml.Append("</TotalSVideoOutPorts>");
            }
            if (IsSetTotalUSB2Ports()) {
                xml.Append("<TotalUSB2Ports>");
                xml.Append(this.TotalUSB2Ports);
                xml.Append("</TotalUSB2Ports>");
            }
            if (IsSetTotalUSBPorts()) {
                xml.Append("<TotalUSBPorts>");
                xml.Append(this.TotalUSBPorts);
                xml.Append("</TotalUSBPorts>");
            }
            if (IsSetTotalVGAOutPorts()) {
                xml.Append("<TotalVGAOutPorts>");
                xml.Append(this.TotalVGAOutPorts);
                xml.Append("</TotalVGAOutPorts>");
            }
            if (IsSetUPC()) {
                xml.Append("<UPC>");
                xml.Append(EscapeXML(this.UPC));
                xml.Append("</UPC>");
            }
            if (IsSetVariationDenomination()) {
                xml.Append("<VariationDenomination>");
                xml.Append(EscapeXML(this.VariationDenomination));
                xml.Append("</VariationDenomination>");
            }
            if (IsSetVariationDescription()) {
                xml.Append("<VariationDescription>");
                xml.Append(EscapeXML(this.VariationDescription));
                xml.Append("</VariationDescription>");
            }
            if (IsSetWarranty()) {
                xml.Append("<Warranty>");
                xml.Append(EscapeXML(this.Warranty));
                xml.Append("</Warranty>");
            }
            if (IsSetWatchMovementType()) {
                xml.Append("<WatchMovementType>");
                xml.Append(EscapeXML(this.WatchMovementType));
                xml.Append("</WatchMovementType>");
            }
            if (IsSetWaterResistanceDepth()) {
                DecimalWithUnits  waterResistanceDepth = this.WaterResistanceDepth;
                xml.Append("<WaterResistanceDepth Units=" + "\"" +  EscapeXML(waterResistanceDepth.Units)  + "\"" +  ">");
                xml.Append(waterResistanceDepth.Value);
                xml.Append("</WaterResistanceDepth>");
            }
            if (IsSetWEEETaxValue()) {
                Price  WEEETaxValue = this.WEEETaxValue;
                xml.Append("<WEEETaxValue>");
                xml.Append(WEEETaxValue.ToXMLFragment());
                xml.Append("</WEEETaxValue>");
            }
            if (IsSetWirelessMicrophoneFrequency()) {
                xml.Append("<WirelessMicrophoneFrequency>");
                xml.Append(this.WirelessMicrophoneFrequency);
                xml.Append("</WirelessMicrophoneFrequency>");
            }
            return xml.ToString();
        }
ItemAttributes