set text causes InvalidCastException

  •  06-18-2008, 9:37 AM

    set text causes InvalidCastException

    When programatically setting the text property to some values (e.g., "<li>"), CuteEditor throws the following exception:
    System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.
    Please advise.
     
    The top of the stack trace is as follows:
     
    [InvalidCastException: Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.]
       CuteEditor.Impl.SafeHtmlParser.a(XmlElement& A_0) +718
       CuteEditor.Impl.SafeHtmlParser.b(XmlElement& A_0) +261
       CuteEditor.Impl.SafeHtmlParser.ParseHtml(XmlElement element, String xmlstring) +150
       CuteEditor.EditorUtility.StripTagsFromInput(String dirtyText, StripTagOption option) +103
       CuteEditor.a.g(String A_0) +320
       CuteEditor.Editor.set_Text(String value) +14
View Complete Thread