I am trying to implement an program that allows me to choose a file using JFileChooser, and parse the xml file using a SAX parser. I get the absolute path using: fc.getSelectedFile().getAbsolutePath(); And this gives me the right location of the file.

fileName = "\\users\udc8\a4471\My Documents\blockdiagram.xml"

However, when I try to run my parser it looks in the wrong Place.

parser.parse(fileName);

java.io.FileNotFoundException: \\users\udc8\a4471\workspace\SAX Intro\users\udc8\a4471\My Documents\blockdiagram.xml (The system cannot find the file specified)

Looking at that adress it adds the working directory. How does one change this?