aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Configuration/XML/XmlConfiguration.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
index 0a9f751..2154e1e 100644
--- a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
+++ b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
@@ -46,13 +46,13 @@ namespace OpenSim.Framework.Configuration.XML
46 46
47 private void LoadDataToClass() 47 private void LoadDataToClass()
48 { 48 {
49 rootNode = doc.FirstChild; 49 rootNode = doc.SelectSingleNode("Root");
50 if (rootNode.Name != "Root") 50 if (null == rootNode)
51 throw new Exception("Error: Invalid .xml File. Missing <Root>"); 51 throw new Exception("Error: Invalid .xml File. Missing <Root>");
52 52
53 configNode = rootNode.FirstChild; 53 configNode = rootNode.SelectSingleNode("Config");
54 if (configNode.Name != "Config") 54 if (null == configNode)
55 throw new Exception("Error: Invalid .xml File. <Root> first child should be <Config>"); 55 throw new Exception("Error: Invalid .xml File. <Root> should contain a <Config>");
56 } 56 }
57 57
58 public void LoadData() 58 public void LoadData()