Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
RSS feed includes illegal formatting for <description>

 

 


rebunkerjr
User

Nov 27, 2006, 12:11 PM

Post #1 of 15 (1031 views)
Shortcut
RSS feed includes illegal formatting for <description> Can't Post

My RSS feed is not working. I created an article by cutting something out of a Word document and pasting it into the wysiwyg editor. The editor is picking up a lot of formatting from the cut/paste. This formatting (e.g. below) is finding it's way into the feed which is making the feed unreadable.

Is there a way to get "text only" into the feed?

Thanks -

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>RobBunker.com</title>
<link>http://www.robertbunker.com/artman2/publish/</link>
<description>Building a Strong Foundation</description>
<pubDate>Mon, 27 Nov 2006 14:21:38 PST</pubDate>
<language>en-us</language>
<item>
<title>Cunningham Motorsports Test</title>
<link>http://www.robertbunker.com/artman2/publish/current/cunningham_motorsports_test.shtml</link>
<category>Current</category>
<description>

&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;
&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;
&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;
&lt;span style=&quot;FONT-FAMILY: Verdana&quot;&gt;&lt;!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --&gt;


&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=3 align=&quot;left&quot; width=&quot;200&quot;&gt;
&lt;tr&gt;&lt;td&gt;



&lt;img src=&quot;http://www.robertbunker.com/artman2/uploads/1/CMS-Test.jpg&quot; border=&quot;1&quot; alt=&quot;CMS-Test.jpg&quot; width=&quot;200&quot; height=&quot;120&quot;&gt;&lt;br clear=&quot;all&quot;&gt;
&lt;span class=&quot;image_caption&quot;&gt;&lt;/span&gt;

&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;


Donna
Staff / Moderator


Nov 28, 2006, 9:39 AM

Post #2 of 15 (1014 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Hi there,

Thanks for your post. :)

The main problem isn't so much the RSS feed as it is the code coming in from Word -- you're going to find that most browsers don't handle it very well. Innova, the WYSIWYG editor that Article Manager uses, has the option to be configured with a "paste from word" button that strips out the bizarre Word-isms.

To add this in Article Manager 2, open the javascript/loadWysiwyg.js file in a text editor. At line 139, you'll find the WYSIWYG features list. Add "PasteWord" as one of the features. For example, I ended up with this:


Code
  wysiwyg.features=[    // buttons to display 
"FontName","FontSize","Bold","Italic","Underline","|",
"JustifyLeft","JustifyCenter","JustifyRight", "|","Numbering","Bullets","Indent","Outdent","|","PasteWord", "BRK",
"ForeColor","BackColor","|","Line","Hyperlink","Image","Table","|",
"HTMLSource","FullScreen","PasteWord"
];


As you can see, I've added PasteWord to the end of the list -- you can, of course, add this wherever it suits you.

Now, when you click on that button, it will give you a new popup window. Paste your content in there instead, and it will strip out all the proprietary Word code, but should still maintain the formatting. :)

Let me know if that works for you!

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


rebunkerjr
User

Nov 29, 2006, 3:46 PM

Post #3 of 15 (994 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Thanks so much for the post. Your suggestion works but it didn't solve the problem.

I followed your instructions and added the Paste From Word button to the Wysiwyg editor. This part works great.

Next, I editted the article, first removing all prior text and then adding the text back into the article using the newly installed Paste From Word button.

Next, I deleted the rss.xml file from the Publish directory.

Next, I performed a publish all.

The rss.xml was recreated by the publish process but it still has Word garbage in it (see below).

I editted the newly published pages to see if the index and article pages contain any Word formatting garbage - they don't but they did prior to using the new Paste From Word button so I know that the new button is working.

Not sure where the junk in the rss feed is coming from...

RSS FEED:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>RobBunker.com</title>
<link>http://www.robertbunker.com/artman2/publish/</link>
<description>Building a Strong Foundation</description>
<pubDate>Wed, 29 Nov 2006 18:13:23 PST</pubDate>
<language>en-us</language>
<item>
<title>Cunningham Motorsports Test</title>
<link>http://www.robertbunker.com/artman2/publish/current/cunningham_motorsports_test.shtml</link>
<category>Current</category>
<description>

&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;
&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;
&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;
&lt;span style=&quot;FONT-FAMILY: Verdana&quot;&gt;&lt;!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --&gt;


&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=3 align=&quot;left&quot; width=&quot;200&quot;&gt;
&lt;tr&gt;&lt;td&gt;



&lt;img src=&quot;http://www.robertbunker.com/artman2/uploads/1/CMS-Test.jpg&quot; border=&quot;1&quot; alt=&quot;CMS-Test.jpg&quot; width=&quot;200&quot; height=&quot;120&quot;&gt;&lt;br clear=&quot;all&quot;&gt;
&lt;span class=&quot;image_caption&quot;&gt;&lt;/span&gt;

&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;


ChetW
Staff


Nov 29, 2006, 4:02 PM

Post #4 of 15 (992 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Hi rebunkerjr,

Thanks for the follow-up!

The issue that you are having may be a result of the web browser you are using not knowing what type of character encoding to use with your xml file. Try changing this bit of code on you globalRSS.xml template file:


Code
 <?xml version="1.0"?>



To this:


Code
 <?xml version="1.0" encoding="UTF-8"?>


After editing your globalRSS.xml file you will need to also republish the "Global RSS Feed" publish rule.

Give this a try and if you have any other questions I will be happy to lend a hand. :)
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



rebunkerjr
User

Nov 29, 2006, 4:23 PM

Post #5 of 15 (990 views)
Shortcut
Re: [ChetW] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Thanks for the quick turn-around. I tried your suggestion but got essentially the same results.

Please understand that the RSS code posted below was a cut/paste from my edittor, not the browsers rendering of the file. Accordingly, changing the browser encoding default didn't have an effect.

I think that there were two problems here. Getting rid of the Word formatting bits seems to have helped. Now, it appears that the process/script that creates the RSS feed is having a difficult time picking up the start of the "description". If you look at the RSS feed below you'll notice comments that are generated by the publish process (e.g. --- templateDebugMode ...). For this reason, I'm assuming that there is a problem with the RSS feed gereration script or with one of my template files which is causing the script to not be able to determine the "description".

Chip


rebunkerjr
User

Nov 29, 2006, 4:29 PM

Post #6 of 15 (989 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

One other quick thought - I noticed from looking at the generated RSS feed (in prior post) that the comment is coming from the Media template. I have not messed with this template file. HOWEVER, the first thing in the article text is a thumbnail (please refer to www.robertbunker.com/artman2/publish/) which preceeds the actual text of the article. I'm wondering if the presence of the thumbnail as the first object in the article summary (and detail for that matter) is what's causing the problem...

Chip


ChetW
Staff


Nov 29, 2006, 4:59 PM

Post #7 of 15 (983 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Hi rebunkerjr,

Thanks for the follow-up!

Hmm, What I have done so far is create a copy of your published rss file I got this information from here:

http://www.robertbunker.com/artman2/publish/rss.xml

When first viewing this I can see the diamond shaped question marks that you are refering to, on the copy I created of your rss.xml file I added the encoding, viewed the results through both Firefox and Internet Explorer7 and everything appeared to be working okay. I have uploaded the copy I created for you to see with this post. :)

I am not sure at the moment what may be causing this issue however I will be happy to take a closer look for you! If you would like to send me your ftp details I will be able to connect with your server and look at your template files.:)

You can send this details to me at http://chet@interactivetools.com. Does this help? I look forward to hearing back from you soon.
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Attachments: test.xml (6.87 KB)


rebunkerjr
User

Nov 29, 2006, 6:26 PM

Post #8 of 15 (979 views)
Shortcut
Re: [ChetW] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Thanks for working with me on this...

So I think we're getting close. NewsGator (my RSS feed reader) is now able to read the feed. I guess I was not looking at the content of the actual feed correctly. When I actually viewed the file with NewsGator, things are almost perfect. The not so perfect part is in the formatting around the included photos. Whenever there is a photo, the text immediately to the right of the photo is being pushed all the way over to the right-hand side. Not sure if you'll be able to see this without a NewsGator account (which you can get for free I think) but here is the link:

http://www.newsgator.com/ngs/subscriber/WebEd2.aspx?fid=1086483


ChetW
Staff


Dec 2, 2006, 12:02 PM

Post #9 of 15 (951 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Hi rebunkerjr,

Thanks for the extra details!

I have created an account at newsgator so that I can take a look at what you are seeing, however when I use the link that you gave I don't see any posts. :)

Are you perhaps working on your RSS feed at the moment? if you could provide me with a link where I can see this feed I will be happy to take a closer look at this formatting issue for you!

Does this help? I look forward to heaing back from you soon. :)
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



rebunkerjr
User

Jan 24, 2007, 7:27 AM

Post #10 of 15 (858 views)
Shortcut
Re: [ChetW] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Thanks Chet

Over the past month or so I've managed to do a fair bit of customization to the rss template. It's working great. Thanks again for the help.


rebunkerjr
User

Feb 1, 2007, 8:01 PM

Post #11 of 15 (817 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

We're not quite out of the woods. The feed works great when viewed by an aggregator (like NewGator or Google Reader). However, it doesn't work with IE7. IE7 is apparently looking for strict XML compliance and the use of certain special characters makes the feed reader in IE7 fail.

In my articles, the most common special characters are for things like mêlée and Montréal.

Perhaps you could consider a placeholder modified of xmlEncoded to properly "escape" these special characters.


dbramley
User

Feb 3, 2007, 1:35 AM

Post #12 of 15 (814 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

IE 7 seems to have issues when you use " or ' anywhere within your title or description - I'm getting the same error message. It displays fine within firefox though.

Also my RSS button doesnt light up within IE7 either...


Stockton on Tees | Hartlepool | Middlesbrough | Sunderland


rebunkerjr
User

Feb 3, 2007, 2:40 PM

Post #13 of 15 (809 views)
Shortcut
Re: [dbramley] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Thanks for the post!

Actually, my feed works fine with Google Feed Reader and Newsgator but DOESN'T work with IE7 due to the special characters you mention (as well as some other Wink).

My IE7 RSS light is WORKING, it just gets errors trying to read the special characters.


ross
Staff / Moderator


Feb 4, 2007, 2:39 PM

Post #14 of 15 (794 views)
Shortcut
Re: [rebunkerjr] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

Hi there

I have sent this one over to Chet for all as it seems like he is already going to have all the different testing things setup already.

He'll be back in Tuesday and should be able to get back in touch pretty quick after that Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




rebunkerjr
User

Feb 18, 2007, 8:10 AM

Post #15 of 15 (741 views)
Shortcut
Re: [ross] RSS feed includes illegal formatting for <description> [In reply to] Can't Post

This one is fixed! Thanks again.

Please refer to post titled "RSS Feed has an error" for resolution!

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4