I have a xml file located in D:\\XML\\RequestXML and I am reading xml file in this folder from a FileReader. In my program I hard coded the file pa
D:\\XML\\RequestXML
FileReader
Hardcoding file paths is not a recommended practice. You may find a way to build the file path programmatically and use File.separator, which returns the correct one depending on the system ("\" for Windows, and "/" for UNIX/Linux/Macintosh).