public function toXMLString() { $str = ''; $str .= '<ns:SetExpressCheckoutReq>'; if ($this->SetExpressCheckoutRequest != NULL) { $str .= '<ns:SetExpressCheckoutRequest>'; $str .= $this->SetExpressCheckoutRequest->toXMLString(); $str .= '</ns:SetExpressCheckoutRequest>'; } $str .= '</ns:SetExpressCheckoutReq>'; return $str; }
public function toXMLString() { $str = ''; $str .= '<urn:SetExpressCheckoutReq>'; if ($this->SetExpressCheckoutRequest != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<urn:SetExpressCheckoutRequest>'; $str .= $this->SetExpressCheckoutRequest->toXMLString(); $str .= '</urn:SetExpressCheckoutRequest>'; } $str .= '</urn:SetExpressCheckoutReq>'; return $str; }