Ajuda no Jdom

// AQUI ESTÁ O PROBLEMA, TERIA QUE SAIR ASSIM (<infNFe xmlns:xsi=“http://www.w3.org…”
// E SAI ASSIM

package nfe;

import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.SQLException;
import org.jdom.Namespace;
import org.jdom.output.XMLOutputter;
import org.jdom.Document;
import org.jdom.Element;

public class GeraXML {

public static void main(String[] args) throws IOException, ClassNotFoundException, SQLException {

  Namespace par      = Namespace.getNamespace("http://www......................"); 
  Document documento = new Document();
  Element NFe        = new Element("NFe",par);

  documento.setRootElement(NFe);

  Namespace par1     = Namespace.getNamespace("xmlns:xsi http://www.w3.org.....................");

  // AQUI ESTÁ O PROBLEMA, TERRIA QUE SAIR ASSIM (<infNFe xmlns:xsi="http://www.w3.org......................"
 //   E  SAI ASSIM <infNfe xmlns="xmlns:xsi http://www.w3.org.....................">

   //PERGUNTO, TERIA COMO NESSA LOGICA DE PROGRAMA TESTE AQUI ANEXO ACERTAR PARA SAIR ASSIM <infNFe xmlns:xsi="http://www.w3.org....>
  //PORTANTO TIRAR ESSE PRIMEIRO  xmlns da <infNfe xmlns ="xmlns:xsi ...>"QUE APARECE ANTES DO SINAL DE IGUAL, NÃO CONSIGO, TALVEZ TENHA QUE MUDAR,
 //ALGUÉM PODERIA ME DAR UMA IDËIA

    Element InfNfe     = new Element("infNfe",par1);
      Element ide        = new Element("ide",par1);

      Element cUF        = new Element("cUF",par1); cUF.setText("55");
      Element cNF        = new Element("cNF",par1); cNF.setText("63");
      Element natOP      = new Element("natOP",par1); natOP.setText("Teste Teste");
      Element indPag     = new Element("indPag",par1); indPag.setText("0");
      Element mod        = new Element("mod",par1); mod.setText("55");
      Element serie      = new Element("serie",par1); serie.setText("1");
      Element nNF        = new Element("nNF",par1); nNF.setText("63");
      Element dEmi       = new Element("dEmi",par1); dEmi.setText("2008-05-06");
      Element dSaiEnt    = new Element("dSaiEnt",par1); dSaiEnt.setText("2008-05-07");
      Element tpNF       = new Element("tpNF",par1); tpNF.setText("0");
      Element cMunFG     = new Element("cMunFG",par1); cMunFG.setText("3550308");
      Element tpImp      = new Element("tpImp",par1); tpImp.setText("1");
      Element tpEmis     = new Element("tpEmis",par1); tpEmis.setText("1");
      Element cDV        = new Element("cDV",par1); cDV.setText("3");
      Element tpEmb      = new Element("tpEmb",par1); tpEmb.setText("2");
      Element finNFe     = new Element("finNFe",par1); finNFe.setText("1");
      Element procEmi    = new Element("procEmi",par1); procEmi.setText("0");

      NFe.addContent(InfNfe);
       InfNfe.addContent(ide);
             ide.addContent(cUF);
             ide.addContent(cNF);
             ide.addContent(natOP);
             ide.addContent(indPag);
             ide.addContent(mod);
             ide.addContent(serie);
             ide.addContent(nNF);
             ide.addContent(dEmi);
             ide.addContent(dSaiEnt);
             ide.addContent(tpNF);
             ide.addContent(cMunFG);
             ide.addContent(tpImp);
             ide.addContent(tpEmis);
             ide.addContent(cDV);
             ide.addContent(tpEmb);
             ide.addContent(finNFe);
            ide.addContent(procEmi);
///////
        XMLOutputter xout = new XMLOutputter();

      try {
           xout.output(documento, new FileOutputStream("c:/teste.xml"));

            } catch (IOException e) {

                  e.printStackTrace();
            }
}

}

amigo, use a tag code… o codigo fica mais legivel.

mas ao problema:

ao inves de

Namespace par1 = Namespace.getNamespace("xmlnssi http://www.w3.org....................."); 

use

Namespace par1 = Namespace.getNamespace("xmlnssi \"http://www.w3.org.....................\""); 

" faz com que sua aspas sejam impressas.

[]'s

Oi, você pode editar o post acima e usar as tags code, como descrito no link abaixo?
http://www.guj.com.br/posts/list/50115.java

Obrigado.

olhei melhor seus comentarios… passe apenas a url:

Namespace.getNamespace("http://www.w3.org.....................");