<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>I'd like to add an
element in a xml file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>I've used
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>Element newElement =
new Element("deviceName");</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>newElement.addContent("jmAllInOneDevice");</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>It works but I would
like to put a line feed after the </deviceName>.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>In fact I get that:
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>...</deviceName><deviceList>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>and I would
like:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>...</deviceName></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001><deviceList>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>Can someone
give me a hint?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>Another
question:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>Is it possible to
write directly this change to my XML file without buffering the
whole</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>XML content first,
making my change and rewriting the result over the last content of the
file?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=390084414-28062001>Since I change only
a small bit of the XML file, is there a way to only update this part in the
file ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001>Jm</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=390084414-28062001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2>--</FONT></DIV>
<DIV><FONT face=Arial size=2>Jean-Marc Seigneur</FONT></DIV></BODY></HTML>