1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to convert Document data type to String

Discussion in 'Android Apps & Games' started by johnpanget, Jun 4, 2010.

  1. johnpanget

    johnpanget Lurker
    Thread Starter

    Hello guys.

    I've already created XML using DOM in Android. Now I have a problem converting my Document data to String since transform factor is not available in Android. I need to FileOutputStream the Strings that came from the Document

    Could you please help me. :)

  2. P1000

    P1000 Lurker

    I also need to know the answer to this question. I have been trying to figure out an elegant way to do this for a couple of days now.

    I am almost ready to give up and write my own function for converting a DOM Document to a String. I am VERY surprised that there is not a single function call that can do this in all of the Android APIs... What a huge oversight...

    If anyone knows of a way, or already has code for doing the conversion themselves that they would not mind sharing, please let me know!


Share This Page