username = $username; $this->password = $password; $this->name = $name; $this->email = $email; $this->properties = $properties; } public function asXML() { // $xml = '' . '' . '' . $this->username . '' . '' . $this->password . '' . '' . $this->name . '' . '' . $this->email . ''; if ($this->properties != null && count ( $this->properties ) > 0) { $xml = $xml . ''; foreach ( $this->properties as $property ) { $xml = $xml . $property->asXML (); } $xml = $xml . ''; } $xml = $xml . ''; return $xml; } } class Property { public $key; public $value; public function __construct($key, $value) { $this->key = $key; $this->value = $value; } public function asXML() { $xml = ''; return $xml; } } ?>