Reading a xml file remotely -


I have a standalone Java based desktop application. This application uses a property file (in plain text format), which requires updating from time to time. To do this, this application should be connected to a remote server, read an XML file located there and update my property file based on the data in XML. How can I do this?

use square url

  url = URL (new URL) "Http://yourremoteserver.com/file_to_be_read.xml"); URL Connection URL Connection = url.openConnection (); InputStream = new BufferedInputStream (urlConnection.getInputStream ());    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -