Bit3\FakerCli\Command\GenerateCommand::outputXml PHP Method

outputXml() protected method

Generate and output the data as XML.
protected outputXml ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$output Symfony\Component\Console\Output\OutputInterface
$data mixed
    protected function outputXml(OutputInterface $output, $data)
    {
        $doc = new \DOMDocument();
        $doc->formatOutput = true;
        $doc->appendChild($this->generateXml($doc, $data));
        $xml = $doc->saveXML();
        $output->write($xml);
    }