XML in a Rad Editor.

4 posts, 0 answers
  1. Rama
    Rama avatar
    22 posts
    Member since:
    Jun 2012

    Posted 16 Mar 2012 Link to this post

    Hi...

    I am using Rad Editor to show my sitemap to user,where they can edit.I cant use normal text box as of security reasons.

    My problem is ,The output the rad editor is all HTML I need Plain text.Is that possible?I mean I need to  to avoid / (escape character before a "  i.e, /" also \n  ) from XML sitemap.

    <?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<sitemap xmlns=\"http://schemas.microsoft.com/AspNet/SiteMap-File-1.0\">\n<sitemapnode>\n<sitemapnode url=\"~/Default.aspx\" title=\"HomePage\" description=\"Home Page\">\n<sitemapnode url=\"~/Postproperty.aspx\" title=\"Post Property\" description=\"Post Property\"></sitemapnode>\n<sitemapnode url=\"~/PostRequirements.aspx\" title=\"Post Requirement\" description=\"Post Requirement\"></sitemapnode>\n<sitemapnode url=\"~/PropertySearc.aspx\" title=\"Property Search\" description=\"Property Search\"></sitemapnode>\n<sitemapnode url=\"~/NewVentures.aspx\" title=\"New Projects\" description=\"New Projects\"></sitemapnode>\n<sitemapnode url=\"~/NRIservices.aspx\" title=\"Services\" description=\"Service Offers\"></sitemapnode>\n<sitemapnode url=\"~/Contactus.aspx\" title=\"Contact Us\" description=\"Contact Us\"></sitemapnode>\n</sitemapnode>\n</sitemapnode></sitemap>"

    This is my sample XML.I just highlighted piece of code.

    This is very urgent from me.If possible ,Please let me know ASAP.

    Thank you !

    Rama.M
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 16 Mar 2012 Link to this post

    Hi,

    Have you tried to obtain the content as plain text via the RadEditor1.Text server property?

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Rama
    Rama avatar
    22 posts
    Member since:
    Jun 2012

    Posted 19 Mar 2012 Link to this post

    Hi Rumen,

    yep RadEditor has a server property named Editor.Text but it is not helping me get out of it ,because it showing error like "please use content property..". Any other solution Please..

    Thanks and Regards
    Rama.M
  4. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 21 Mar 2012 Link to this post

    Hi,

    You should use the Content property to load content in RadEditor.
    You need to set the Text property to obtain (not to set) the editor's content as plain text, which was your requirement ("The output the rad editor is all HTML I need Plain text").

    Also note that RadEditor is an XHTML editor, but not XML editor and support for XML tags is not offered out-of-the box.

    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top