public function buildRootNode($type, $node, \XMLWriter &$writer)
{
if ($type !== 'array') {
throw new \Exception('Only array root nodes are supported');
}
$writer->startElementNs('xsd', 'schema', 'http://www.w3.org/2001/XMLSchema');
foreach ($node[$this->getFullName('children')] as $key => $value) {
$this->buildNode($key, $value[$this->getFullName('type')], $value, $writer, true);
}
$writer->endElement();
}