I have an API which will create the report and we need to pass the JRXML content(whihc is passed as string from UI) for that,Now I want to compile the JRXML content before saving it into data base,One approach I have is that I can save the JRXML content into file system and then load that file and compile it,But I don't like it because if the compilation failed I need to delete that file from file system, So wondering If I can compile the input JRXML content only before storing it into file.
I am passing the JRXML as a string to my method which should compile that JRXML string, but I don't want to store the content in file and then compile it