[Simple-support] How do I get the xml version, encoding line to show as the first line in a file
Brought to you by:
niallg
|
From: Warren G. <war...@so...> - 2012-02-03 21:59:37
|
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 |