IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Java in General
 
RSS feed
 
New topic
Author

xml and properties

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Messages: 73

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
Bartender

Joined: Oct 14, 2005
Messages: 7148

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 it! Watch this topic JavaRanch » Forums » Java » Java in General
 
RSS feed
 
New topic
MyEclipse Enterprise Workbench

.