views:

63

answers:

2

Hi,

Can anybody tell me how to convert a string to an xml file in android?

Thanks

A: 

Use the DOM.

CommonsWare
A: 

If the application is simple and doesn't need too much xml manipulation performance then DOM should do the trick. Otherwise try using SAX which can give a big boost in performance in certain occasions. Look at this tutorial that explains well the differences between them.

RicardoSBA