• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to read xml or xsl from jar file

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic