public bool LoadString (string data)
{
if (data == null)
return false;
#if (XML_DEP)
XmlTextReader reader = null;
try {
TextReader tr = new StringReader (data);
reader = new XmlTextReader (tr);
if (InitRead (reader))
ReadConfigFile (reader);
} catch (ConfigurationException) {
throw;
} catch (Exception e) {
throw new ConfigurationException ("Error reading " + fileName, e);
} finally {
if (reader != null)
reader.Close();
}
#endif
return true;
}