I have this method:
@RequestMapping( value = DetailedMetaDataController.RESOURCE_PATH + ".xml", headers = "Accept=application/json" )
public void exportXml( @RequestBody JSONObject json ) throws IOException
{
String responseString = JacksonUtils.toXmlAsString();
}
The responseString is a XML String. The AJAX request is a post because I send large amount of data, but the AJAX always returns error.
I need a simple Window with which to save the String as a xml file.