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?

Ludwig

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. RelativeLayout added using LayoutInflater and addView doesn't obey fill_parent?

I have a RelativeLayout as my content view. If I place this inside of
it:

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:id="@+id/root"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:padding="10dp"
              android:background="#DAAA"
              >
</LinearLayout>

It fills the parent as expected. If I use a layout inflater and
addView to put it in the same place, it will always just wrap_content.
I've tried calling requestLayout on the parent and child to no effect.
Does anyone have any ideas?

-- 

2. Searchify: Expand your search bar functionalit

baru nyoba lagi... buset dah.. tadi fungsi ribet kek "50 * sin(pi/2) +
ln(7^2)" bisa di solve juga.. xD



2010/3/4 Bayu Wicaksono <bwicaksono.priv...@gmail.com>




-- 
regards,
Bayu Wicaksono

-- 
"Indonesian Android Community [id-android]" 

3. (Repost) WTB: Nexus One BNIB (Sudah Dapat)

4. buat user G1/Dream, ada Amon_Ra Recovery baru ni

5. life-cycle clarification help

6. Motorola to Milestone Developers, "Buy HTC", makin seru aja sodara-sodari.. :

7. How to properly manage task stack history w/ notifications?