X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=xpi%2Fxpi_07.xhtml;h=6a523f31bf8ea701512bdc219ca5a7cb631fac4c;hb=9482b8b27b70c6f885abbf98d69b5256ce8a2ea2;hp=30ef14e0cfb5494282d6d780ca8c77d1b66c461a;hpb=55937b25bd7d4b822dabd3991d9aeed1d6ffaccc;p=hacks%2FsimpleWebSlides.git diff --git a/xpi/xpi_07.xhtml b/xpi/xpi_07.xhtml index 30ef14e..6a523f3 100644 --- a/xpi/xpi_07.xhtml +++ b/xpi/xpi_07.xhtml @@ -317,7 +317,8 @@ Document doc = …; //l'objet DOM que l'on veut sauver dans un fichier Transformer tr = tf.newTransformer(); - tr.transform(doc, new StreamSource(new FileOutputStream("fichier.xml"))); + tr.transform(new DOMSource(doc), + new StreamResult(new FileOutputStream("fichier.xml")));

Streaming avec SAX