[TYPO3] xml feed firts line empty and Firefox crashes

ries van Twisk typo3 at rvt.dds.nl
Tue Dec 18 18:29:10 CET 2007


Hey Jason,

I agree with you.
With my current experiences with TYPO3 on quercus I noticed that more
XML problems exists then directly seen. It seems that at least PHP
allows for borken XML's to be parsed correctly without a warning!!

So I think it needs to get fixed somewhere, I am just not in the  
position to do so..

Ries


On Dec 18, 2007, at 12:13 PM, Jason Lefkowitz wrote:

> This is definitely not a bug in Firefox.  XML documents that include a
> document type declaration must have that declaration start at the  
> first
> character of the first line of the document.  Any whitespace before  
> that
> means that the document is not "well-formed" and will fail XML
> validation/processing.  While most feed readers make allowances for
> badly formed feeds, it's bad practice to generate feeds that rely on
> readers ignoring the specs.
>
> In other words, when Firefox says that the feed is broken, Firefox is
> correct.  Those feeds ARE broken, and can't be processed as XML.
>
> I ran into exactly this issue in developing my Atom Feed Publisher
> extension (jl_atom), too, so it's not a bug in tt_news.  I have yet to
> find a way to get TYPO3 to let me start my output without the blank  
> line
> being inserted first. Given that tt_news is having the same problem  
> I'm
> inclined to think this is a core TYPO3 issue.
>
> -- Jason Lefkowitz
>
>
>
> ries van Twisk wrote:
>> I think a quicker solution for this guy is fixing it in TYPO3,
>> I am sure more people would of problems with it, are there?
>>
>> TYPO3 has fixing bugs on browsers sites already for ages ,
>> and an example of this is :
>>  config.doctypeSwitch
>> Nobody say 'Complain at MS...'.
>>
>> -----
>>
>> I don't know the specs of RSS at all, but is an empty line allowed at
>> the beginning of the file?
>>
>> However, this might sounds like a specific case, otherwise much more
>> people would have complained!!!!
>>
>> @Jeroen, are you using latest versions of tt_news?
>> and may be you can track down if it's your setup, or that it's really
>> tt_news generating links incorrectly?
>>
>> If it's tt_news, then file in a bug report (not at firefox bug track
>> then :) )
>>
>> Ries
>>
>> On Dec 13, 2007, at 8:04 AM, Dmitry Dulepov [typo3] wrote:
>>
>>> Hi!
>>>
>>> Jeroen Visser wrote:
>>>> The RSS feed of my tt_news generates the news.xml but creates the  
>>>> file
>>>> with the first line empty and the output starts at line 2.
>>>> IE doesn't seem to care about it. Also my feedreader has no  
>>>> problem with
>>>> it.
>>>> Firefox spits the following message:
>>>>
>>>> XML Parsing Error: xml declaration not at start of external entity
>>>> Location: http://www.mydomain.nl/news.xml
>>>> Line Number 2, Column 1:
>>>>
>>>> <?xml version="1.0" encoding="iso-8859-1" ?>
>>>> ^
>>>>
>>>>
>>>> The code that generates the xml realy starts at line 1. Did  
>>>> someone had
>>>> this problem also?
>>>> I am looking forward to some reactions.
>>>
>>> Here it is: report it FireFox guys for fixing.
>>>
>>> -- 
>>> Dmitry Dulepov
>>> TYPO3 core team
>>> Web: http://typo3bloke.net/
>>> Skype: callto:liels_bugs
>>> "Nothing is impossible. There are only limits to our knowledge"
>>
>> -- 
>> Ries van Twisk
>> Freelance TYPO3 Developer
>> email: ries at vantwisk.nl
>> web:   http://www.rvantwisk.nl/
>> skype: callto://r.vantwisk
>> Phone: + 1 810-476-4193
>>
>>
>>
>>
>>
>>
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

--
Ries van Twisk
Freelance TYPO3 Developer
email: ries at vantwisk.nl
web:   http://www.rvantwisk.nl/
skype: callto://r.vantwisk
Phone: + 1 810-476-4193









More information about the TYPO3-english mailing list