Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5843861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:12:48+00:00 2026-05-22T12:12:48+00:00

I am writing a XML gui editor using java, which edits the xml file

  • 0

I am writing a XML gui editor using java, which edits the xml file and there are programs which would read that xml file and act according the changes immediately. For that purpose, I need to invoke an <ip-address>:<portnumber>, I need to send a small amount of textual data "/n" too. To be precise I need to alert a particular ip adress that some changes has been made to the xml file, and that it should re-read it, so that the changes can take affect. Now any ideas as to how to go about it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:12:49+00:00Added an answer on May 22, 2026 at 12:12 pm

    The easiest solution is to implement a small UDP or TCP/IP based solution. Unless the other system already defines an API telling you how to send a notification.

    Java based client/server are described on several locations, here’s a SO question that asks for a tutorial. For this question, I suggest you look at the existing API and/or the tutorial, for detailed answers we need more input.


    You can start with this snippet – but absolutely no guarantee that it actually works in your environment:

    Socket socket = new Socket("localhost", 12345);  // replace with real ip/port
    Writer out = new PrintWriter(socket.getOutputStream(), true);
    out.println();                                   // this sends the '\n'
    out.close();
    socket.close();
    

    You’ll have to add some exception handling.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with my Java program. How I read xml -file which has
What format do I use for Date/Time when writing to an XML file using
I'm writing some code that handles logging xml data and I would like to
I am writing a simple CSV to XML processor in Java. I am using
I'm writing a Java application with GUI using Swing. One of the GUI components
I'm writing out XML files using the MSXML parser, with a wrapper I downloaded
I'm writing a lightweight XML editor, and in cases where the user's input is
I'm writing a NON-GUI app which I want to be cross platform between OS
I am writing an XML file in rails(running on RHEL) and will then need
I have a table with 100 K records. I am writing an XML file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.