Help - Search - Members - Calendar
Full Version: invalid XML
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
xmlerror
The rss feeds that Movable Type 2.64 creates are sometimes invalid and so fail in a number of RSS readers.

The problem seems to be that the entity & uacute; (and perhaps others too) is included in the xml file, but in the context of the rss feed, it's an undefined entity so the reader can't parse the file.

An example is the current feed at Smart Mobs.

Perhaps that entity could be zapped
kadyellebee
I believe that they are using the full MTEntryBody in their feed rather than the excerpt; from the Default templates:
CODE
<description><$MTEntryExcerpt remove_html="1" encode_xml="1"$></description>


I believe that because that removes the html, it would strip non-valid characters. If the full Entry text is used, then that's not automatically gonna do it. I could be mistaken, but that's what it seems like.


I did a quick search on google, and found that extended characters like &Uacute; are considered high-ascii characters and aren't valid XML. I *think* that the page I was reading meant that you could use the ascii code for the character and still be valid:

Ú = &Uacute;

(found on this page)

If you frequently use extended characters like this, you might want to find a feed template that uses the CDATA encoding on the entry's body. I use Lisa's XML feed to have my content encoded with CDATA.

Does that help?

Kristine
xmlerror
That's excellent, thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.