[Expat-discuss] Bugs in expat 1.95.8 [WAS: Expat 1.95.8 fails on XML with newline]

Karl Waclawek karl at waclawek.net
Tue Dec 14 17:56:23 CET 2004


Enrico Weigelt wrote:
> * rolf at pointsman.de <rolf at pointsman.de> wrote:
> 
> <snip>
> 
>>>I really dont care about such fundamentalists. 
>>>XML is a text format, and those normally have dozens over newlines. 
>>>I dont see where kindly accepting some additional newlines makes
>>>any trouble. Expat is per definition an non-validating parser and
>>>thus is not intendet for syntax checking. 
>>
>>This is not about fundamentalism, but about playing under the
>>rules. For the current matter, the rules are very clear. There are
>>even a reason for that rule (to simplify a bit the process of
>>autodetection of the document encoding).
> 
> 
> hmm, okay.
> 
> overscanning some leading newlines (IMHO) wouldnt be problem, but its 
> probably better to lay this in the hands of the application or add
> an special mode for that. 

This is easy to do, as you are passing a buffer to Expat.
Just adjust the buffer pointer and decrement the count accordingly.

at this point we also could implement
> other things like passing common entities as they are. 

What do you mean?

Karl
> 
> 
> cu



More information about the Expat-discuss mailing list