function __construct($type)
{
parent::__construct();
$check = $this->createElement($type);
$this->hostobject = $this->createElement('host:' . $type);
if (!$this->rootNamespaces()) {
$this->hostobject->setAttribute('xmlns:host', 'urn:ietf:params:xml:ns:host-1.0');
}
$check->appendChild($this->hostobject);
$this->getCommand()->appendChild($check);
}