projects
/
hacks
/
simpleWebSlides.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[hacks/simpleWebSlides.git]
/
xpi
/
xpi_07.xhtml
diff --git
a/xpi/xpi_07.xhtml
b/xpi/xpi_07.xhtml
index
30ef14e
..
6a523f3
100644
(file)
--- a/
xpi/xpi_07.xhtml
+++ b/
xpi/xpi_07.xhtml
@@
-317,7
+317,8
@@
<code>
<kbd>Document doc = …; </kbd>//l'objet DOM que l'on veut sauver dans un fichier
<u>Transformer tr = tf.newTransformer();</u>
<code>
<kbd>Document doc = …; </kbd>//l'objet DOM que l'on veut sauver dans un fichier
<u>Transformer tr = tf.newTransformer();</u>
- <u>tr.transform(doc, new StreamSource(new FileOutputStream("fichier.xml")));</u>
+ <u>tr.transform(new DOMSource(doc),</u>
+ <u>new StreamResult(new FileOutputStream("fichier.xml")));</u>
</code>
</div>
<h1><i>Streaming</i> avec SAX</h1>
</code>
</div>
<h1><i>Streaming</i> avec SAX</h1>