protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetTransactionId()) {
xml.Append("<TransactionId>");
xml.Append(EscapeXML(this.TransactionId));
xml.Append("</TransactionId>");
}
if (IsSetSellerId()) {
xml.Append("<SellerId>");
xml.Append(EscapeXML(this.SellerId));
xml.Append("</SellerId>");
}
if (IsSetCondition()) {
xml.Append("<Condition>");
xml.Append(EscapeXML(this.Condition));
xml.Append("</Condition>");
}
if (IsSetTransactionDate()) {
xml.Append("<TransactionDate>");
xml.Append(EscapeXML(this.TransactionDate));
xml.Append("</TransactionDate>");
}
if (IsSetTransactionDateEpoch()) {
xml.Append("<TransactionDateEpoch>");
xml.Append(EscapeXML(this.TransactionDateEpoch));
xml.Append("</TransactionDateEpoch>");
}
if (IsSetSellerName()) {
xml.Append("<SellerName>");
xml.Append(EscapeXML(this.SellerName));
xml.Append("</SellerName>");
}
if (IsSetPayingCustomerId()) {
xml.Append("<PayingCustomerId>");
xml.Append(EscapeXML(this.PayingCustomerId));
xml.Append("</PayingCustomerId>");
}
if (IsSetOrderingCustomerId()) {
xml.Append("<OrderingCustomerId>");
xml.Append(EscapeXML(this.OrderingCustomerId));
xml.Append("</OrderingCustomerId>");
}
if (IsSetTotals()) {
TransactionTotals totals = this.Totals;
xml.Append("<Totals>");
xml.Append(totals.ToXMLFragment());
xml.Append("</Totals>");
}
if (IsSetTransactionItems()) {
TransactionItems transactionItems = this.TransactionItems;
xml.Append("<TransactionItems>");
xml.Append(transactionItems.ToXMLFragment());
xml.Append("</TransactionItems>");
}
if (IsSetShipments()) {
TransactionShipments shipments = this.Shipments;
xml.Append("<Shipments>");
xml.Append(shipments.ToXMLFragment());
xml.Append("</Shipments>");
}
return xml.ToString();
}