cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: REPOST: HTML Tags from a database field
Date Thu, 31 Jan 2008 05:52:39 GMT
I hope that really was a joke!!

>>> On 2008/01/31 at 07:17, in message <47A159F6.8090004@gmx.de>, Joerg Heinicke
<joerg.heinicke@gmx.de> wrote:
On 12.01.2008 19:06, Grzegorz Kossakowski wrote:

> I just looked at the code of SQLTransformer and found this, which is rather interesting
to you:
>         protected void serializeData(String value)
>         throws SQLException, SAXException {
>             if (value != null) {
>                 value = value.trim();
>                 // Could this be XML ?
>                 if (value.length() > 0 && value.charAt(0) == '<') {
>                     try {
>                         stream(value);
>                     } catch (Exception ignored) {
>                         // FIXME: bad coding "catch(Exception)"
>                         // If an exception occured the data was not (valid) xml
>                         data(value);
>                     }
>                 } else {
>                     data(value);
>                 }
>             }
>         }

The SQLTransformer has always been suspicious to me! ;)

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
For additional commands, e-mail: users-help@cocoon.apache.org 


-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice,
and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


Mime
View raw message