protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetCartId()) {
xml.Append("<CartId>");
xml.Append(EscapeXML(this.CartId));
xml.Append("</CartId>");
}
if (IsSetHMAC()) {
xml.Append("<HMAC>");
xml.Append(EscapeXML(this.HMAC));
xml.Append("</HMAC>");
}
if (IsSetMergeCart()) {
xml.Append("<MergeCart>");
xml.Append(EscapeXML(this.MergeCart));
xml.Append("</MergeCart>");
}
if (IsSetItems()) {
CartModifyItems items = this.Items;
xml.Append("<Items>");
xml.Append(items.ToXMLFragment());
xml.Append("</Items>");
}
List<String> responseGroupList = this.ResponseGroup;
foreach (String responseGroup in responseGroupList) {
xml.Append("<ResponseGroup>");
xml.Append(responseGroup);
xml.Append("</ResponseGroup>");
}
return xml.ToString();
}