Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > XML Repeater View modes: 
User avatar
Member
Member
demansou-gmail - 10/29/2012 12:08:54 PM
   
XML Repeater
I created a Google Sitemap XML page using Document Data Source and XML Repeater. Set the transformation to the Google-defined standard.

However, due to my articles containing "&", I cannot get the page working. It displays an error:

XML Parsing Error: not well-formed
Location: http://www.tennisnow.com/Google-Sitemap.aspx
Line Number 154, Column 66: <news:title>VIDEO: More Doping Talk, Serena's Coaching Staff, & Dimitrov's Shot of the Year</news:title>
-------------------------------------------------------------------------------^

It is because you can't use "&" or ">" characters in XML. Is there a way through Kentico to define banned characters?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/31/2012 4:37:13 AM
   
RE:XML Repeater
Hello,


Kentico provides forbidden characters only for URLs, not transformations.

You can use standard ASP.NET functions to replace the characters within the transformation, or clone the XML repeater and change the output HTML code just before rendering. You can find sample codes with replacements by Google, for example: http://asp-net-example.blogspot.cz/2009/01/how-to-replace-specified-substring-with.html.


Best regards,
Helena Grulichova