• Post Reply Bookmark Topic Watch Topic
  • New Topic

xml and properties  RSS feed

 
James Howerton
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Posts: 22819
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!