Re: [Simple-support] How do I get the xml version, encoding line to show as the first line in a fil
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-02-05 02:26:20
|
Pass a Format instance to your Persister. --- On Fri, 3/2/12, Warren Goldman <war...@so...> wrote: From: Warren Goldman <war...@so...> Subject: [Simple-support] How do I get the xml version, encoding line to show as the first line in a file To: sim...@li... Received: Friday, 3 February, 2012, 1:59 PM I am writing to a file and would like the xml to be preceded by <?xml version="1.0" encoding="UTF-8" standalone="yes"?> Presently I am having the serializer.write take in a ByteArrayOutputStream, then writing the above to a file, following by the contents of the byte array. Is there a way to annotate or achieve this so I do not have to have the whole xml stream in a byte array? -- Warren Goldman Consultant | Solution Design Group (SDG) | 10275 Wayzata Blvd. Suite 300 | Minnetonka, MN 55305 952.454.2154 (mobile) | 763.5956346 (office) | www.solutiondesign.com Minneapolis/St. Paul Business Journal's Best Places to Work and Fast 50 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |