/**
  * @inheritdoc
  */
 public function write(OutputInterface $output, $dom, FormatterOptions $options)
 {
     if (is_array($dom)) {
         $schema = $options->getXmlSchema();
         $dom = $schema->arrayToXML($dom);
     }
     $dom->formatOutput = true;
     $output->writeln($dom->saveXML());
 }