There is an XML serializer, but it appears you have to the transformation
yourself to go from Document to Serializer.  Not too complicated, but just
kind of a pain.

Thanks

On Mon, Sep 27, 2010 at 12:11 AM, Kumar Bibek <[email protected]> wrote:

> Implementing your own serializer to do this I guess is the most
> easiest. I am not sure though if Android still doesn't have an XML
> Serializer. It wasn't there a few versions back when I last checked.
> You can also use third-party libraries.
>
> -Kumar Bibek
> http://techdroid.kbeanie.com
>
> On Sep 27, 7:21 am, ecforu <[email protected]> wrote:
> > This should be trivial, but for whatever reason I can't find any easy way
> to
> > do this.  Coming from C# where this is a 1 line call, I don't understand
> why
> > Java makes this so complicated, and on top of that android leaves even
> that
> > out of its libraries.
> >
> > Anyway all I want to do is write an
> >
> > org.w3c.dom.Document
> >
> > that I have populated to a xml file.  It should be as easy as opening a
> > stream and writing document.toString().  But that doesn't work.
> >
> > My hope is I'm just missing something.  Can some one help me out here?
> >
> > thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to