Writing XML data

by Ludwig » Sat, 20 Sep 2008 01:26:53 GMT

Sponsored Links
 I need to write a file in XML format. There are a couple of parsers
available, but I cannot find anything useful for writing XML.

The task is a long-running process, so creating a DOM, then writing it
at the end would be waste of space, I need a stream-based writer that
adds lines of XML to the document before closing all open elements
when the application exits.

Of course I can do this with simple write statements, but I want to
ensure that I will be creating valid XML.

Any hints?



Other Threads

1. Rotating the device / emulator?


I'm using the 1.5 SDK. I read in 1.0 that rotating the device would
cause onCreate() to be called in our apps (possibly recreating the
entire app?).

Is there a way to test rotating the device in the emulator? I just
want to see what happens, I don't have a device to test this. Will the
behavior be the same for 1.5 as it was in 1.0?


2. where exactly the resize algorithm implementation inside surface flinger is performed for the use case of video playback


With regards to the below discussion:

3. Contribute SuperH code to Android

4. What copybit does and where image conversion from YUV to RGB is implemented?

5. How the video display size making use of resize and rotation is set under Android

6. How to play youtube urls in android?

7. SW (2D API) vs. HW (openGL) rendering