The above code first finds whether there is already an element with the same display name. If found, that server info will be updated, else a new element is created and the file will be saved at the end.

Now let's get all the information of the server selected by the user and display it: