Jump to content

Please Help...My XML files are lost :-(

Recommended Posts

By: Arun Kumar PG - pgarunkumar

Please Help...My XML files are lost :-(

2003-10-21 22:59



Dear all,


I lost my Jasper .xml design file and only left with .jasper files.

Can any one tell me how to extract .xml file from .jasper file.


I used this code to decompile .jasper to .xml but it gives me ClassCastException exception :


public static void main(java.lang.String[] args) {

try {

dori.jasper.engine.design.JasperDesign jdObject = dori.jasper.engine.JasperManager.loadDesign("myfile.jasper");

String xmlContent = "";

dori.jasper.engine.JRReport obj = jdObject;

dori.jasper.engine.xml.JRXmlWriter.writeReport(obj, xmlContent);

System.out.println("OK" + xmlContent);

} catch (Exception e) {

System.out.println("EX" + e);





Any correction to above code ????? or any other way to get it ????



I need those files in any case or i'll be in a bug trouble.


Any help regarding this will be highly appreciated.


Thanks in advance


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...