1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

How to convert Document data type to String


Last Updated:

  1. johnpanget

    johnpanget New Member This Topic's Starter

    Joined:
    Jun 4, 2010
    Messages:
    1
    Likes Received:
    0
    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

    Joined:
    Jun 11, 2010
    Messages:
    1
    Likes Received:
    0
    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!
     
  3. seppitm

    seppitm New Member

    Joined:
    Sep 14, 2010
    Messages:
    1
    Likes Received:
    0

Share This Page

Loading...