I am writing a program in java that reads the xml file from a webservice. The Document object is returned in my program. I have save the dom document into xml file. How to convert dom to xml string and then save into a file?
You have to use Transformer class for converting DOM object into string data.
Please check the thread dom to xml string.