public String ToXML()
{
StringBuilder xml = new StringBuilder();
xml.Append("<TransactionLookupResponse xmlns=\"http://webservices.amazon.com/AWSECommerceService/2007-07-16\">");
if (IsSetOperationRequest()) {
OperationRequest operationRequest = this.OperationRequest;
xml.Append("<OperationRequest>");
xml.Append(operationRequest.ToXMLFragment());
xml.Append("</OperationRequest>");
}
List<Transactions> transactionsList = this.Transactions;
foreach (Transactions transactions in transactionsList) {
xml.Append("<Transactions>");
xml.Append(transactions.ToXMLFragment());
xml.Append("</Transactions>");
}
xml.Append("</TransactionLookupResponse>");
return xml.ToString();
}