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