Hello Folks,
I am using an xml file as my initial config file. I don't want to hard code the aboslute path of the xml file in xml file reader class. Is there any way I can tell the xml path to my config xml file reader?
Eg:
String xmlFilePath = "C:\test\test.xml"
SAXParser saxParser = factory.newSAXParser();
saxParser.parse( new File(xmlFilePath), this);
I don't want to hardcode xmlFilePath
My problem will be solved if I can
1. use relative path
2. some kind of class path
else I will have to write another ini file (which will have the xml file path) and place that at root directory
Note that my application supports : AIX, Linux and windows
Appreciate you help..
Namaste,
Sakti
[ June 26, 2004: Message edited by: Sakti Singh ]