File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Generating Xml file in run-time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Generating Xml file in run-time" Watch "Generating Xml file in run-time" New topic
Author

Generating Xml file in run-time

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

HI,

I am generating the xml file at runtime and when i try to run the application, i find that xml file is not in the classpath. How to solve this issue.


The bean wiring is all working fine. I have this issue of xml file not being found in the classpath. Any suggestions


Ashwin Sridhar
SCJP | SCWCD | OCA
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

When i read the XML from FileSystem, it is working fine.
But when i read from Classpath, it doesn't find the file in the classpath
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

This was resolved by pointing the run-time Xml file directly to the build path.
Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

I was pondering upon generating the xml file at runtime for some time. Your code seems useful. Thanks.
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Thank you. I am happy it helped you out
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating Xml file in run-time