protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetTransactionItemId()) {
xml.Append("<TransactionItemId>");
xml.Append(EscapeXML(this.TransactionItemId));
xml.Append("</TransactionItemId>");
}
if (IsSetQuantity()) {
xml.Append("<Quantity>");
xml.Append(EscapeXML(this.Quantity));
xml.Append("</Quantity>");
}
if (IsSetUnitPrice()) {
Price unitPrice = this.UnitPrice;
xml.Append("<UnitPrice>");
xml.Append(unitPrice.ToXMLFragment());
xml.Append("</UnitPrice>");
}
if (IsSetTotalPrice()) {
Price totalPrice = this.TotalPrice;
xml.Append("<TotalPrice>");
xml.Append(totalPrice.ToXMLFragment());
xml.Append("</TotalPrice>");
}
if (IsSetASIN()) {
xml.Append("<ASIN>");
xml.Append(EscapeXML(this.ASIN));
xml.Append("</ASIN>");
}
if (IsSetChildTransactionItems()) {
ChildTransactionItems childTransactionItems = this.ChildTransactionItems;
xml.Append("<ChildTransactionItems>");
xml.Append(childTransactionItems.ToXMLFragment());
xml.Append("</ChildTransactionItems>");
}
return xml.ToString();
}