Cannot handle text nodes

Oct 17, 2011 at 8:37 AM

The following XML:

 

<?xml version="1.0" encoding="utf-8" ?>
<ssab.framework>
    <authentication type="azman">
	<source>C:\Files\Security.xml</source>
    </authentication>
    <logging applicationName="MyName">
        <directory>D:\LogFiles</directory>
    </logging>
</ssab.framework>

 

Generates:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlText' to type 'System.Xml.XmlElement'.
   at NConfigGenerator.ConfigTree.InferRecursively(XmlElement element, ConfigNode configNode)
   at NConfigGenerator.ConfigTree.InferRecursively(XmlElement element, ConfigNode configNode)
   at NConfigGenerator.ConfigTree.InferRecursively(XmlElement element, ConfigNode configNode)
   at NConfigGenerator.ConfigTree.InferFromXml(String xml)
   at NConfigGeneratorUI.ConfigCodeGenForm.GenerateConfigTree()
   at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.TabControl.WmSelChange()
   at System.Windows.Forms.TabControl.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)