• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting inputstream null for the xml xml file outside workspace

 
Anuj Joshi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to parse the xml file which is outside my workspace.



here strFilePath is the complete path of xml file "D:/abc/MyXML.xml"
& for this path I am getting stream = null
but when I tried the same code for the xml file(com.myPrj.MyXML.xml) which is in my workspace then it works fine.

Can anyone please give me the solution for accessing the xml file outside my workspace.

Thanks
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use FileInputStream?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!