protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetExchangeId()) {
xml.Append("<ExchangeId>");
xml.Append(EscapeXML(this.ExchangeId));
xml.Append("</ExchangeId>");
}
if (IsSetListingId()) {
xml.Append("<ListingId>");
xml.Append(EscapeXML(this.ListingId));
xml.Append("</ListingId>");
}
if (IsSetASIN()) {
xml.Append("<ASIN>");
xml.Append(EscapeXML(this.ASIN));
xml.Append("</ASIN>");
}
if (IsSetSKU()) {
xml.Append("<SKU>");
xml.Append(EscapeXML(this.SKU));
xml.Append("</SKU>");
}
if (IsSetUPC()) {
xml.Append("<UPC>");
xml.Append(EscapeXML(this.UPC));
xml.Append("</UPC>");
}
if (IsSetEAN()) {
xml.Append("<EAN>");
xml.Append(EscapeXML(this.EAN));
xml.Append("</EAN>");
}
if (IsSetWillShipExpedited()) {
xml.Append("<WillShipExpedited>");
xml.Append(this.WillShipExpedited);
xml.Append("</WillShipExpedited>");
}
if (IsSetWillShipInternational()) {
xml.Append("<WillShipInternational>");
xml.Append(this.WillShipInternational);
xml.Append("</WillShipInternational>");
}
if (IsSetTitle()) {
xml.Append("<Title>");
xml.Append(EscapeXML(this.Title));
xml.Append("</Title>");
}
if (IsSetPrice()) {
Price price = this.Price;
xml.Append("<Price>");
xml.Append(price.ToXMLFragment());
xml.Append("</Price>");
}
if (IsSetStartDate()) {
xml.Append("<StartDate>");
xml.Append(EscapeXML(this.StartDate));
xml.Append("</StartDate>");
}
if (IsSetEndDate()) {
xml.Append("<EndDate>");
xml.Append(EscapeXML(this.EndDate));
xml.Append("</EndDate>");
}
if (IsSetStatus()) {
xml.Append("<Status>");
xml.Append(EscapeXML(this.Status));
xml.Append("</Status>");
}
if (IsSetQuantity()) {
xml.Append("<Quantity>");
xml.Append(EscapeXML(this.Quantity));
xml.Append("</Quantity>");
}
if (IsSetCondition()) {
xml.Append("<Condition>");
xml.Append(EscapeXML(this.Condition));
xml.Append("</Condition>");
}
if (IsSetSubCondition()) {
xml.Append("<SubCondition>");
xml.Append(EscapeXML(this.SubCondition));
xml.Append("</SubCondition>");
}
if (IsSetSeller()) {
Seller seller = this.Seller;
xml.Append("<Seller>");
xml.Append(seller.ToXMLFragment());
xml.Append("</Seller>");
}
return xml.ToString();
}