Bug in xml when exporting strings that have & (ampersand

Please report bugs here!

Moderator: Thorsten

Post Reply
ealimam
Posts: 1
Joined: Tue Oct 19, 2004 9:38 pm

Bug in xml when exporting strings that have & (ampersand

Post by ealimam »

I received the following error after opening an rss in IE/Firefox that was exported from phpMyFAQ:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource 'file:///C:/Inetpub/wwwroot/faq/xml/topten.xml'. Line 28, Position 63

<description>AT&T Acquired ...</description>
---------------------^

The problem is that the ampersand was not properly HTML encoded as '&' and so the xml parser choked on it. If this can't be handled properly, then perhaps the user should be notified when creating the record that it might not export correctly if they don't correctly address the ampersand issue.

Thanks,
alimem2
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you're right. I'll fix it with 1.4.3 RC2.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this bug is fixed in phpMyFAQ 1.4.3 RC2.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply