🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Convertir un xml en chaine avec Xerces?

#9286
From: bstrazzabosco
Date: Wed, 25 Apr 2001 09:41
26 lines
1763 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: <OF75D04C4C.6D4E45B6-ONC1256A39.00356048@lyon.spheris.net>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.177.105.133!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
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-04-25 02:41:33 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.177.105.133!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:41:30 +0000 (UTC)
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 26
Message-ID: <OF75D04C4C.6D4E45B6-ONC1256A39.00356048@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 988191689 2717 194.206.157.41 (Wed, 25 Apr 2001 11:43:19 +0200)
X-Complaints-To: abuse@mailgate.org
NNTP-Posting-Date: Wed, 25 Apr 2001 09:41:30 +0000 (UTC)
Mail-From: bstrazzabosco@lyon.micropole.com from [194.206.157.41]
X-URL: http://www.Mailgate.ORG