protected function createXml($type)
{
$xml = '';
switch ($type) {
case 'datatype':
case 'view':
case 'layout':
case 'script':
$xml .= $this->createResource($type);
break;
case 'document-type':
$xml .= $this->createDocumentType();
break;
case 'document':
$xml .= $this->createDocument();
break;
}
return $xml;
}