1. Check out our companion app, Forums for Android! Download from Google Play

How to convert Document data type to String

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

  1. johnpanget

    johnpanget New Member
    Thread Starter
    5

    Jun 4, 2010
    1
    0
    5
    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. :)
     

    Advertisement

  2. P1000

    P1000 New Member
    5

    Jun 11, 2010
    1
    0
    5
    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!

    Thanks!
     

Share This Page

Loading...