public function generateFromArray(array $data)
    {
        $xml = $this->processGenerate($this->rootName, $data);
        $this->createPiNode();
        $this->getDomDocument()->appendChild($xml);
        $xml = $this->getDomDocument()->saveXML();

        $this->flush();

        return $xml;
    }
public function generateFromArray(array $data)
    {
        $xml = $this->processGenerate($this->rootName, $data);
        $this->createPiNode();
        $this->getDomDocument()->appendChild($xml);
        $xml = $this->getDomDocument()->saveXML();

        $this->flush();

        return $xml;
    }
public function generateFromArray ( array $ data ) { $ xml = $ this -> processGenerate ( $ this -> rootName , $ data ) ; $ this -> createPiNode ( ) ; $ this -> getDomDocument ( ) -> appendChild ( $ xml ) ; $ xml = $ this -> getDomDocument ( ) -> saveXML ( ) ; $ this -> flush ( ) ; return $ xml ; }
Process convert array to XML

@param array $data

@return string
Process convert array to XML