I have a trivial Java question. I have a function that is supposed to generate a XML file. At the moment I simply have a String return type for the function.
public String myXmlFile()
I like this approach because it gives me a clean api.
I do not like this approach because it puts me in a sticky spot if the xml becomes too large. I know I could create a file and return a handler of the file from the function. However, creating a file gives me the added headache of having to remember to delete this file once I am done with it. And that is not a very easy thing, because the code that uses the XML is not very trivial. It is complex and it is going to change a lot.
So, polling the group to see if there is a easy answer to this?