• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to convert Document data type to String

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. :-)
 
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!
 
Back
Top Bottom