Server options in XML (XML reading in Unity)


I am working on making a multiplayer game and I have planned to use a CMD for it. I will make a CMD that contains something like this: (Untested, just to showcase)

-batchmode -executeMethod StartServer

Then the function will read a XML in the application files called “serverConfig” for example. The function will have something like “Network.InitializeServer(numberOfPlayers,connectionPort);” The fields will be filled with the lines in the XML file. Now my question is, how to I check for those? How do I check for strings, bools, ints e.t.c.

I have read this[] whole page but it isn’t helping much.

Any help is appreciated!