protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetListId()) {
xml.Append("<ListId>");
xml.Append(EscapeXML(this.ListId));
xml.Append("</ListId>");
}
if (IsSetListURL()) {
xml.Append("<ListURL>");
xml.Append(EscapeXML(this.ListURL));
xml.Append("</ListURL>");
}
if (IsSetRegistryNumber()) {
xml.Append("<RegistryNumber>");
xml.Append(EscapeXML(this.RegistryNumber));
xml.Append("</RegistryNumber>");
}
if (IsSetListName()) {
xml.Append("<ListName>");
xml.Append(EscapeXML(this.ListName));
xml.Append("</ListName>");
}
if (IsSetListType()) {
xml.Append("<ListType>");
xml.Append(this.ListType);
xml.Append("</ListType>");
}
if (IsSetTotalItems()) {
xml.Append("<TotalItems>");
xml.Append(this.TotalItems);
xml.Append("</TotalItems>");
}
if (IsSetTotalPages()) {
xml.Append("<TotalPages>");
xml.Append(this.TotalPages);
xml.Append("</TotalPages>");
}
if (IsSetDateCreated()) {
xml.Append("<DateCreated>");
xml.Append(EscapeXML(this.DateCreated));
xml.Append("</DateCreated>");
}
if (IsSetOccasionDate()) {
xml.Append("<OccasionDate>");
xml.Append(EscapeXML(this.OccasionDate));
xml.Append("</OccasionDate>");
}
if (IsSetCustomerName()) {
xml.Append("<CustomerName>");
xml.Append(EscapeXML(this.CustomerName));
xml.Append("</CustomerName>");
}
if (IsSetPartnerName()) {
xml.Append("<PartnerName>");
xml.Append(EscapeXML(this.PartnerName));
xml.Append("</PartnerName>");
}
if (IsSetAdditionalName()) {
xml.Append("<AdditionalName>");
xml.Append(EscapeXML(this.AdditionalName));
xml.Append("</AdditionalName>");
}
if (IsSetComment()) {
xml.Append("<Comment>");
xml.Append(EscapeXML(this.Comment));
xml.Append("</Comment>");
}
if (IsSetImage()) {
Image image = this.Image;
xml.Append("<Image>");
xml.Append(image.ToXMLFragment());
xml.Append("</Image>");
}
if (IsSetAverageRating()) {
xml.Append("<AverageRating>");
xml.Append(this.AverageRating);
xml.Append("</AverageRating>");
}
if (IsSetTotalVotes()) {
xml.Append("<TotalVotes>");
xml.Append(this.TotalVotes);
xml.Append("</TotalVotes>");
}
if (IsSetTotalTimesRead()) {
xml.Append("<TotalTimesRead>");
xml.Append(this.TotalTimesRead);
xml.Append("</TotalTimesRead>");
}
if (IsSetTags()) {
Tags tags = this.Tags;
xml.Append("<Tags>");
xml.Append(tags.ToXMLFragment());
xml.Append("</Tags>");
}
return xml.ToString();
}