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
Post a Comment