🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9285

Re: Convertir un xml en chaine avec Xerces?

#9285
From: bstrazzabosco
Date: Wed, 25 Apr 2001 09:37
24 lines
1803 bytes
bon c'est pas avec xerces mais c'est apache...

la methode getXMLDocument renvoie le document en question

org.apache.xml.serialize.OutputFormat format =
   new org.apache.xml.serialize.OutputFormat(getXMLDocument());
  format.setIndenting(true);
  java.io.StringWriter stringOut = new java.io.StringWriter();
  org.apache.xml.serialize.XMLSerializer serial =
   new org.apache.xml.serialize.XMLSerializer(stringOut, format);
  serial.asDOMSerializer();
  serial.serialize(getXMLDocument().getDocumentElement());
  return stringOut.toString();

et voili voilou

Benoit


--
Posted from [194.206.157.41]
via Mailgate.ORG Server - http://www.Mailgate.ORG
Technical Details
Message-ID: <OF3CA6183F.09BEB91E-ONC1256A39.0034B5D4@lyon.spheris.net>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!news.mailgate.org!194.206.157.41!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 114f60,ecf3b8d3a63dc677,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-04-25 02:37:06 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!news.mailgate.org!194.206.157.41!not-for-mail
From: bstrazzabosco@lyon.micropole.com
Newsgroups: fr.comp.text.xml
Subject: Re: Convertir un xml en chaine avec Xerces?
Date: Wed, 25 Apr 2001 09:37:02 +0000 (UTC)
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 24
Message-ID: <OF3CA6183F.09BEB91E-ONC1256A39.0034B5D4@lyon.spheris.net>
NNTP-Posting-Host: 194.206.157.41
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: news.mailgate.org 988191422 2620 194.206.157.41 (Wed, 25 Apr 2001 11:38:50 +0200)
X-Complaints-To: abuse@mailgate.org
NNTP-Posting-Date: Wed, 25 Apr 2001 09:37:02 +0000 (UTC)
Mail-From: bstrazzabosco@lyon.micropole.com from [194.206.157.41]
X-URL: http://www.Mailgate.ORG