public function toXMLString() { $str = ''; $str .= '<ns:BMCreateButtonReq>'; if ($this->BMCreateButtonRequest != null) { $str .= '<ns:BMCreateButtonRequest>'; $str .= $this->BMCreateButtonRequest->toXMLString(); $str .= '</ns:BMCreateButtonRequest>'; } $str .= '</ns:BMCreateButtonReq>'; return $str; }