Le 6 Mar 2002 Aline a �crit :

> Bonjour,
> 
> J'ai une application qui parse un document XML et qui recupere un
> Document. J'effectue des modifications sur ce Document et j'aimerai le
> resortir dans un nouveau fichier XML mais la dtd n'y est plus incluse.
> 
> Quelqu'un a-t-il une solution?
> 

Prends ta respiration :

serializer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, 
doc.getDoctype().getSystemId());

... ou va voir http://www.jguru.com/forums/view.jsp?EID=493633

--
Sur le Web, tout de suite.
Herve AGNOUX - diaam informatique
http://www.diaam-informatique.com

Répondre à