Server options in XML (XML reading in Unity)

Hi!

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[http://wiki.unity3d.com/index.php?title=Saving_and_Loading_Data:_XmlSerializer] whole page but it isn’t helping much.

Any help is appreciated!

Thanks

http://wiki.unity3d.com/index.php/Loading_xml_files

http://forum.unity3d.com/threads/xml-reading-a-xml-file-in-unity-how-to-do-it.44441/

http://forum.unity3d.com/threads/reading-xml-resource-file.108421/