public void ParseXML(XMLNode root) { string type = root.Key.ToUpper(); switch (type) { case "ITEMS": Items.Parse(root); break; case "NPCS": NPCs.Parse(root); break; case "MATERIALS": Materials.Parse(root); break; case "STRINGS": ParseStrings(root); break; case "TITLES": PlayerProfessions.ParseXML(root); break; case "LEVELEDITEMS": LeveledItems.Parse(root); break; default: if (BigBoss.Debug.logging(Logs.XML)) { BigBoss.Debug.w(Logs.XML, "Basenode key " + root.Key + " did not exist as an option to parse. Node: " + root); } break; } }