Article View: fr.comp.text.xml
Article #9477creation d'un fichier XML a partir d'un Document.
From: tahia
Date: Thu, 22 Mar 2001 09:51
Date: Thu, 22 Mar 2001 09:51
17 lines
1488 bytes
1488 bytes
Bonjour tout le monde,
j'ai pris la methode de Mr Jean-paul Joanany:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
String body = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
body += "<myRoot>\n";
body += "</myRoot>\n";
baos.write(body.getBytes());
baos.close();
Document doc = docBuilder.parse(new InputSource (new
ByteArrayInputStream(baos.toByteArray())));
existe t-il une methode pour sauver le contenu de mon "doc" dans un
fichier XML??
merci d'avance.
TAHIA
Technical Details
Message-ID:
<3AB9CB0C.4D104924@imag.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!univ-lyon1.fr!news.ens-lyon.fr!news.imag.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114f60,3a05efe71a21ee89,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-03-22 01:54:27 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!univ-lyon1.fr!news.ens-lyon.fr!news.imag.fr!not-for-mail From: tahia <tahia@imag.fr> Newsgroups: fr.comp.text.xml Subject: creation d'un fichier XML a partir d'un Document. Date: Thu, 22 Mar 2001 10:51:08 +0100 Organization: IMAG Lines: 18 Message-ID: <3AB9CB0C.4D104924@imag.fr> NNTP-Posting-Host: alphand.imag.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: trompette.imag.fr 985254524 29053 129.88.103.10 (22 Mar 2001 09:48:44 GMT) X-Complaints-To: abuse@imag.fr NNTP-Posting-Date: 22 Mar 2001 09:48:44 GMT X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en