public function toXMLString()
 {
     $str = '';
     if ($this->BillingApprovalDetails != null) {
         for ($i = 0; $i < count($this->BillingApprovalDetails); $i++) {
             $str .= '<ebl:BillingApprovalDetails>';
             $str .= $this->BillingApprovalDetails[$i]->toXMLString();
             $str .= '</ebl:BillingApprovalDetails>';
         }
     }
     if ($this->BuyerDetail != null) {
         $str .= '<ebl:BuyerDetail>';
         $str .= $this->BuyerDetail->toXMLString();
         $str .= '</ebl:BuyerDetail>';
     }
     if ($this->InfoSharingDirectives != null) {
         $str .= '<ebl:InfoSharingDirectives>';
         $str .= $this->InfoSharingDirectives->toXMLString();
         $str .= '</ebl:InfoSharingDirectives>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->BillingApprovalDetails != null) {
         for ($i = 0; $i < count($this->BillingApprovalDetails); $i++) {
             //property is collection
             //prop.complex
             //does not contain attribute or is attribute
             $str .= '<ebl:BillingApprovalDetails>';
             $str .= $this->BillingApprovalDetails[$i]->toXMLString();
             $str .= '</ebl:BillingApprovalDetails>';
         }
     }
     if ($this->BuyerDetail != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:BuyerDetail>';
         $str .= $this->BuyerDetail->toXMLString();
         $str .= '</ebl:BuyerDetail>';
     }
     if ($this->InfoSharingDirectives != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:InfoSharingDirectives>';
         $str .= $this->InfoSharingDirectives->toXMLString();
         $str .= '</ebl:InfoSharingDirectives>';
     }
     return $str;
 }