protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetLowestPrice()) {
Price lowestPrice = this.LowestPrice;
xml.Append("<LowestPrice>");
xml.Append(lowestPrice.ToXMLFragment());
xml.Append("</LowestPrice>");
}
if (IsSetHighestPrice()) {
Price highestPrice = this.HighestPrice;
xml.Append("<HighestPrice>");
xml.Append(highestPrice.ToXMLFragment());
xml.Append("</HighestPrice>");
}
if (IsSetLowestSalePrice()) {
Price lowestSalePrice = this.LowestSalePrice;
xml.Append("<LowestSalePrice>");
xml.Append(lowestSalePrice.ToXMLFragment());
xml.Append("</LowestSalePrice>");
}
if (IsSetHighestSalePrice()) {
Price highestSalePrice = this.HighestSalePrice;
xml.Append("<HighestSalePrice>");
xml.Append(highestSalePrice.ToXMLFragment());
xml.Append("</HighestSalePrice>");
}
if (IsSetSingleMerchantId()) {
xml.Append("<SingleMerchantId>");
xml.Append(EscapeXML(this.SingleMerchantId));
xml.Append("</SingleMerchantId>");
}
return xml.ToString();
}