Yes, but that doesn't actually 'write' the file does it?
It just generates a String which contains the XML representation of the java object. Its not persisted anywhere. You can generate a String representation of an object on the client with a few StringBuilder calls if you want to.
I believe that OPs problem is that he wants to save it somewhere. Alan On 1/4/2011 12:05 PM, A. Stevko wrote:
I've used this code frag to write XML on app engine without any problems. ByteArrayOutputStream baos = new ByteArrayOutputStream( ); XMLEncoder encoder = new XMLEncoder(baos); encoder.writeObject(myObject); encoder.close(); return baos.toString(); I believe I got the code from Example Depot at http://www.exampledepot.com/egs/java.beans/WriteXml.html -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
-- Alan Chaney CTO and Founder, Mechnicality, Inc. www.mechnicality.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.