public function array2xml(string $xmlField = '', ?string $dataField = null): void
    {
        $xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><' . $xmlField . '/>');
        $this->createXml($xml, $this->arrayData, $dataField);
        $this->xmlData = $xml->asXML();
    }
public function array2xml(string $xmlField = '', ?string $dataField = null): void
    {
        $xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><' . $xmlField . '/>');
        $this->createXml($xml, $this->arrayData, $dataField);
        $this->xmlData = $xml->asXML();
    }
public function array2xml ( string $ xmlField = '' , ? string $ dataField = null ) : void { $ xml = new SimpleXMLElement ( '<?xml version="1.0" encoding="UTF-8"?><' . $ xmlField . '/>' ) ; $ this -> createXml ( $ xml , $ this -> arrayData , $ dataField ) ; $ this -> xmlData = $ xml -> asXML ( ) ; }
Convert Array to XML

@param string $xmlField The opening tag for the XML file
@param string|null $dataField
Convert Array to XML