How to save player datas (username, password, etc.) in xml file [only c#]

Hello, I have a problem with saving player datas in xml file

I’d like to have this file saved like in that:



Can anyone help me with it?

Third result from google: step-by-step instructions from Microsoft. Is there any reason that doesn’t work in your setup?

Ok, no questions