protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetAmount()) {
xml.Append("<Amount>");
xml.Append(this.Amount);
xml.Append("</Amount>");
}
if (IsSetCurrencyCode()) {
xml.Append("<CurrencyCode>");
xml.Append(EscapeXML(this.CurrencyCode));
xml.Append("</CurrencyCode>");
}
if (IsSetFormattedPrice()) {
xml.Append("<FormattedPrice>");
xml.Append(EscapeXML(this.FormattedPrice));
xml.Append("</FormattedPrice>");
}
return xml.ToString();
}