• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml and properties

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I have an xml file and I would like to control where the file is placed. I would like the path to be in the package SAXExample1

xml/saxexample1.xml but I am not sure how to have find it with the SAXParseFactory

InputStream xmlInput =new FileInputStream(/xml/saxexample.xml. If I can have the file there could someone give me some basic example of how to create a class that will get my String /xml/saxexample1.xml" from a properties file properties/saxproperties.properties.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The fact that the file you're trying to get happens to contain XML doesn't make this a question about XML.

And you're better off having this in a forum about Java in general, because your questions are about not understanding how the current working directory functions. So I'm going to move it there.
 
reply
    Bookmark Topic Watch Topic
  • New Topic