File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read xml or xsl from jar file

 
Amar, Nandigam
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like to know whether it is possible to read an xml and xsl file that are within a jar file? If possible, how?
thanks,
amar.
 
Vlad Patryshev
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are talking about java, right? Then the following will help:

[This message has been edited by Vlad Patryshev (edited July 03, 2001).]
 
Amar, Nandigam
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vlad,
thanks for your reply. I have one more question. If my xml file is in a jar file which itself is in another jar file, how do I access it. For example I have to read an xml file from war file which is in a ear file. Can I convert JarEntry of war file into a JarFile and acess xml file from it? I was looking at API of JarFile, I couldn't see a constructor which takes JarEntry. Is this possible?
thanks,
amar.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic