public function xml()
	{
		$this->validate();

		$s = $this->template;
		$s = str_replace('{{language}}', $this->lang, $s);
		$s = str_replace('{{main}}', $this->success ? $this->template_success : $this->template_failure, $s);
		if ($this->success) {
			$s = str_replace('{{userId}}', $this->userId, $s);
			$s = str_replace('{{itemId}}', $this->itemId, $s);
			$s = str_replace('{{userAgencyId}}', $this->userAgencyId, $s);
			$s = str_replace('{{itemAgencyId}}', $this->itemAgencyId, $s);
			$s = str_replace('{{dateDue}}', $this->formatDateTime($this->dateDue), $s);
		} else {
			$s = str_replace('{{error}}', $this->error, $s);
			$s = str_replace('{{errorDetails}}', $this->errorDetails, $s);
		}
		return $s;
	}
public function xml()
	{
		$this->validate();

		$s = $this->template;
		$s = str_replace('{{language}}', $this->lang, $s);
		$s = str_replace('{{main}}', $this->success ? $this->template_success : $this->template_failure, $s);
		if ($this->success) {
			$s = str_replace('{{userId}}', $this->userId, $s);
			$s = str_replace('{{itemId}}', $this->itemId, $s);
			$s = str_replace('{{userAgencyId}}', $this->userAgencyId, $s);
			$s = str_replace('{{itemAgencyId}}', $this->itemAgencyId, $s);
			$s = str_replace('{{dateDue}}', $this->formatDateTime($this->dateDue), $s);
		} else {
			$s = str_replace('{{error}}', $this->error, $s);
			$s = str_replace('{{errorDetails}}', $this->errorDetails, $s);
		}
		return $s;
	}
Return a XML representation of the request