This is a migrated thread and some comments may be shown as answers.

Verifying XML in a RadEditor

3 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 30 Jan 2012, 06:53 PM
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?

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 30 Jan 2012, 07:38 PM
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
0
Matthew
Top achievements
Rank 1
answered on 30 Jan 2012, 07:50 PM
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.
0
Anthony
Telerik team
answered on 30 Jan 2012, 11:03 PM
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
Tags
General Discussions
Asked by
Matthew
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or