File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes xml and properties Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "xml and properties" Watch "xml and properties" New topic
Author

xml and properties

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
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
Posts: 12867

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.
 
 
subject: xml and properties