I am trying to parse remote xml file. when i check the path of the file using outDocFile.getCanonicalFile() , it is pointing to local("C:/ct-data/ald/erd/relDeletes) but the variable(outputLocation) is pointing to "/ct-data/ald/erd/relDeletes". because of this i'm getting outDocFile.exists() =null
please let me know, if i am missing anything.
here is the code:
Received Reply from FTP Connection:200
File path C:\ct-data\ald\erd\relDeletes\entity-N_CCH-61874.xml
You're missing a lot of things. For example, you're missing an explanation of what FTP has to do with the question. (All you do with FTP is to connect to the server; you could leave that out entirely without affecting the rest of the code.)
You are also missing an explanation of why the canonical path for that pathless file name shouldn't be on your C drive. Where else do you think it should be, and why? And why are you surprised that the file doesn't exist?
Joined: Nov 02, 2010
Actually i want to parse remote xml file so I have used FTPClient. I am able to connect to the server and but it is not picking me the remote xml file. My problem is it is giving me IO exception( The system cannot find the file specified). I have checked the remote file permission also.
outputLocation points to remote loaction (/ct-data/ald/erd/relDeletes/ )
and oct points to the file remote file which I need to parse(entity-N_CCH-61874.xml).
outDocFile.getAbsolutePath() gives me C:\ct-data\ald\erd\relDeletes\entity-N_CCH-61874.xml