public String toXMLString() {
   StringBuilder sb = new StringBuilder();
   if (BillingAgreementDetails != null) {
     sb.append("<ebl:BillingAgreementDetails>");
     sb.append(BillingAgreementDetails.toXMLString());
     sb.append("</ebl:BillingAgreementDetails>");
   }
   if (ReturnURL != null) {
     sb.append("<ebl:ReturnURL>").append(SDKUtil.escapeInvalidXmlCharsRegex(ReturnURL));
     sb.append("</ebl:ReturnURL>");
   }
   if (CancelURL != null) {
     sb.append("<ebl:CancelURL>").append(SDKUtil.escapeInvalidXmlCharsRegex(CancelURL));
     sb.append("</ebl:CancelURL>");
   }
   if (LocaleCode != null) {
     sb.append("<ebl:LocaleCode>").append(SDKUtil.escapeInvalidXmlCharsRegex(LocaleCode));
     sb.append("</ebl:LocaleCode>");
   }
   if (PageStyle != null) {
     sb.append("<ebl:PageStyle>").append(SDKUtil.escapeInvalidXmlCharsRegex(PageStyle));
     sb.append("</ebl:PageStyle>");
   }
   if (cppHeaderImage != null) {
     sb.append("<ebl:cpp-header-image>")
         .append(SDKUtil.escapeInvalidXmlCharsRegex(cppHeaderImage));
     sb.append("</ebl:cpp-header-image>");
   }
   if (cppHeaderBorderColor != null) {
     sb.append("<ebl:cpp-header-border-color>")
         .append(SDKUtil.escapeInvalidXmlCharsRegex(cppHeaderBorderColor));
     sb.append("</ebl:cpp-header-border-color>");
   }
   if (cppHeaderBackColor != null) {
     sb.append("<ebl:cpp-header-back-color>")
         .append(SDKUtil.escapeInvalidXmlCharsRegex(cppHeaderBackColor));
     sb.append("</ebl:cpp-header-back-color>");
   }
   if (cppPayflowColor != null) {
     sb.append("<ebl:cpp-payflow-color>")
         .append(SDKUtil.escapeInvalidXmlCharsRegex(cppPayflowColor));
     sb.append("</ebl:cpp-payflow-color>");
   }
   if (BuyerEmail != null) {
     sb.append("<ebl:BuyerEmail>").append(SDKUtil.escapeInvalidXmlCharsRegex(BuyerEmail));
     sb.append("</ebl:BuyerEmail>");
   }
   if (ReqBillingAddress != null) {
     sb.append("<ebl:ReqBillingAddress>")
         .append(SDKUtil.escapeInvalidXmlCharsRegex(ReqBillingAddress));
     sb.append("</ebl:ReqBillingAddress>");
   }
   return sb.toString();
 }
 public String toXMLString() {
   StringBuilder sb = new StringBuilder();
   if (BillingAgreementDetails != null) {
     sb.append("<ebl:BillingAgreementDetails>");
     sb.append(BillingAgreementDetails.toXMLString());
     sb.append("</ebl:BillingAgreementDetails>");
   }
   if (ReturnURL != null) {
     sb.append("<ebl:ReturnURL>").append(ReturnURL);
     sb.append("</ebl:ReturnURL>");
   }
   if (CancelURL != null) {
     sb.append("<ebl:CancelURL>").append(CancelURL);
     sb.append("</ebl:CancelURL>");
   }
   if (LocaleCode != null) {
     sb.append("<ebl:LocaleCode>").append(LocaleCode);
     sb.append("</ebl:LocaleCode>");
   }
   if (PageStyle != null) {
     sb.append("<ebl:PageStyle>").append(PageStyle);
     sb.append("</ebl:PageStyle>");
   }
   if (cppheaderimage != null) {
     sb.append("<ebl:cpp-header-image>").append(cppheaderimage);
     sb.append("</ebl:cpp-header-image>");
   }
   if (cppheaderbordercolor != null) {
     sb.append("<ebl:cpp-header-border-color>").append(cppheaderbordercolor);
     sb.append("</ebl:cpp-header-border-color>");
   }
   if (cppheaderbackcolor != null) {
     sb.append("<ebl:cpp-header-back-color>").append(cppheaderbackcolor);
     sb.append("</ebl:cpp-header-back-color>");
   }
   if (cpppayflowcolor != null) {
     sb.append("<ebl:cpp-payflow-color>").append(cpppayflowcolor);
     sb.append("</ebl:cpp-payflow-color>");
   }
   if (BuyerEmail != null) {
     sb.append("<ebl:BuyerEmail>").append(BuyerEmail);
     sb.append("</ebl:BuyerEmail>");
   }
   if (ReqBillingAddress != null) {
     sb.append("<ebl:ReqBillingAddress>").append(ReqBillingAddress);
     sb.append("</ebl:ReqBillingAddress>");
   }
   return sb.toString();
 }