cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Streaming strings in JXTemplate
Date Sun, 22 May 2005 03:11:24 GMT
Leszek Gawron wrote:
> Vadim Gritsenko wrote:
> 
>> Ugo Cei wrote:
>>
>>> Il giorno 12/mag/05, alle 14:08, Leszek Gawron ha scritto:
>>>
>>>> what do we do with
>>>> <jx:out value="<root><tag>broken</mispelledtag></root>"
parse="xml"/>
>>>>
>>>> 1. generate SAX events - if value is invalid this breaks the whole view
>>>> 2. parse to DOM, catch exceptions, use @lenient to throw or silently 
>>>> omit.
>>>
>>>
>>> Either 1 or give users a choice. Defaulting to DOM might be too 
>>> resource-intensive.
>>
>>
>> ... especially since we have compressed xml serializer *and* sax 
>> buffer as alternatives.
> 
> 
> The main reason for using DOM in some cases (chosen by user at runtime) 
> is the ability to avoid SAXException. SaxBuffer does not offer such 
> functionality as it just stores sax bits and does not check if xml is 
> well formed.

And neither does DOM. So can you explain your point or give an example?

Vadim

Mime
View raw message