Hi.
> hi guys I need help
>
> I'm working with jaxb, and I need this
> <?xml version="1.0" encoding="UTF-8"?>
> <enviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.10">
>
>
> but, I have this
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <ns2:enviNFe xmlns="http://www.portalfiscal.inf.br/nfe"
> xmlns:ns2="http://www.w3.org/2000/09/xmldsig#">
>
> In marshall properties I have
> JAXBContext jxb = JAXBContext.newInstance("cl.azurian.nfe");
> Marshaller format = jxb.createMarshaller();
>
> format = jxb.createMarshaller();
>
> // Set variables de SCHEMA
> format.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
> format.setProperty(Marshaller.JAXB_ENCODING,Constantes.encodig_UTF8);
>
> the problem is the prefix ns2,any suggestion??
Use a namespace prefix mapper.
http://java.sun.com/webservices/docs/2.0/jaxb/vendorProperties.html
Bye.
/lexi