Use the method getSelectedFile() from JFileChooser and create a InputStream with the returned File.
JFileChooser chooser = new JFileChooser();
File file = chooser.getSelectedFile();
InputStream inputStream = new FileInputStream(file);
Document document = builder.parse(inputStream);