Verifying XML in a RadEditor

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    16 posts
    Member since:
    Jul 2011

    Posted 30 Jan 2012 Link to this post

    I need to verify the content of a RadEditor. The content is XMl including tags. When I verify the text, the editor gives me the HTML code (&lt; for example) instead of < and the verification fails. Is there a function to get around this?
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 30 Jan 2012 Link to this post

    Hello Matthew,

    I could not reproduce the issue when testing against this Telerik RadEditor demo site. See the attached screen shot. The special characters were translated into their coded equivalents and the verification passed.

    How exactly does your verification fail? Please provide the information outlined here so we can continue troubleshooting. Specifically, the Step Failure Details (Export Result to File feature) and a means to reproduce your issue.

    If any of that information is sensitive, you can file and attach it to a support ticket, which is confidential unlike this forum.

    Regards,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Matthew
    Matthew avatar
    16 posts
    Member since:
    Jul 2011

    Posted 30 Jan 2012 Link to this post

    Attached is the error log. My mistake; this is entered into a rad editor but the error in question is produced when validating a text area.
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 30 Jan 2012 Link to this post

    Hello Matthew,

    To me your verification seems to be complicated and therefore fragile. I expect it to fail unless the entire XML chunk matches.

    If you insist on verifying the entire code block, why not edit your data sheet so it contains the XML in the format as rendered by the browser? In other words, copy the value at time of failure from the log (with the special characters replaced by their HTML coded equivalents) and paste that into your data sheet.

    Kind regards,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top