protected void gerarXml(){
        int index = gCrlv.getTableGerenciarCrlvs().getSelectionModel().getLeadSelectionIndex();
        if(index > -1){
            XStream xstream = new XStream();
            ModelCRLV c = gCrlv.getCrlv().get(index);
            String xml = xstream.toXML(c);
            
            ViewXMLViewer jifXmlViewer = new ViewXMLViewer();
            ControllerXMLViewer conXml = new ControllerXMLViewer(jifXmlViewer, xml, c.getCodRenavam());
            jifXmlViewer.getTxtAreaXmlViewer().setText(xml);
            mw.getDesktop().add(jifXmlViewer);
            jifXmlViewer.setVisible(true);
        }
        else
            JOptionPane.showMessageDialog(mw, "Selecione um documento para gerar o XML!");
    }