Here's one for ya
-
Try the following out. Why is the emailsettings element tree read BEFORE the othersettings element (its parent)! Am I blind? while( settings.Read() ) { string section = settings.Name; switch( section.ToLower() ) { case "pollagentsettings": break; case "profileragentsettings": break; case "othersettings": break; } } /* Use this as your settings.xml document - it is the output from the XmlTextWriter */
-
Try the following out. Why is the emailsettings element tree read BEFORE the othersettings element (its parent)! Am I blind? while( settings.Read() ) { string section = settings.Name; switch( section.ToLower() ) { case "pollagentsettings": break; case "profileragentsettings": break; case "othersettings": break; } } /* Use this as your settings.xml document - it is the output from the XmlTextWriter */
Holy crapper! If you put a space between the opening OtherSettings element and the opening EmailSettings element, it works fine. Can anyone think of a real good reason that is a bug? Modified: Sorry make that just before the opening OtherSettings element.