Path Specification problem
i have an xml file and from that i need to refer to the dtds...
In my system the dtd path accepts only if it is set as
"/c:/Documents and settings/.... "
but by default it has to be set as "c:/documents and settings/..."
And because of this when i get absolute path and assign the value for opening a file or saving a file it shows error and i couldnt get the needed output.
How to resolve.... what has to be done and why is this so....
The dtd definition file path is to be mentioned in xml file na. in the top of xml file where i need to specify the dtd file path if i give the path as
"C:/Documents and settings/Uhdam/Prj/src/Parser/dtdefintion.dtd" it shows me error and specifies that it should be in the format as below
"/C:/Documents and settings/Uhdam/Prj/src/Parser/dtdefintion.dtd"
So when i use methodname.getAbsolutePath(); it returns an error because it wouldnt consider the / in front of drive name by default.
What to do to make the system recognize without slash in front of drive name.