Re: [Simple-support] Generate line with xml version number
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-08-18 12:50:52
|
You can use the org.simpleframework.xml.stream.Format object, this allows you to specify a prolog. It can be passed to the Persister constructor. Niall --- On Tue, 2/8/11, sen...@gm... <sen...@gm...> wrote: > From: sen...@gm... <sen...@gm...> > Subject: [Simple-support] Generate line with xml version number > To: sim...@li... > Received: Tuesday, 2 August, 2011, 3:36 PM > Hello! > > I use Simple to serialize Java code to XML. > > How can I create this typical first-line of an XML > document, where it says version x and encoding y? > > Like this: > <?xml version="1.0" encoding="UTF-8"?> > > Is there any special annotation or argument for that? I > work with the code from the website's tutorial section. > > Tnx & cu > Bernd > -- > NEU: FreePhone - 0ct/min Handyspartarif mit > Geld-zurück-Garantie! > > Jetzt informieren: http://www.gmx.net/de/go/freephone > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich > system, > user administration capabilities and model configuration. > Take > the hassle out of deploying and managing Subversion and the > > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |