• 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

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!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones