public function toXMLString()
 {
     $str = '';
     if ($this->OfferCode != null) {
         $str .= '<ebl:OfferCode>' . PPUtils::escapeInvalidXmlCharsRegex($this->OfferCode) . '</ebl:OfferCode>';
     }
     if ($this->BMLOfferInfo != null) {
         $str .= '<ebl:BMLOfferInfo>';
         $str .= $this->BMLOfferInfo->toXMLString();
         $str .= '</ebl:BMLOfferInfo>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->OfferCode != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:OfferCode>' . $this->OfferCode . '</ebl:OfferCode>';
     }
     if ($this->BMLOfferInfo != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:BMLOfferInfo>';
         $str .= $this->BMLOfferInfo->toXMLString();
         $str .= '</ebl:BMLOfferInfo>';
     }
     return $str;
 }