code: public static void generateJRXML(DynamicReport dr, LayoutManager layoutManager, Map _parameters, String xmlEncoding, OutputStream outputStream) throws JRException {
          JasperReport jr = generateJasperReport(dr, layoutManager, _parameters);
          if (xmlEncoding == null)
              xmlEncoding = DEFAULT_XML_ENCODING;
          JRXmlWriter.writeReport(jr, outputStream, xmlEncoding);
      }
docs: Creates a jrxml file
  
  @param dr
  @param layoutManager
  @param _parameters
  @param xmlEncoding   (default is UTF-8 )
  @param outputStream
  @throws JRException