In the callback that deals with characters you could add a reference to a
method that seeks the specific character you are trying to filter.  This is
just an idea, and may not be the best solution, but is is one possible
approach.  I actually made my own filter which works on a character by
character basis.  It examines characters that I've  identified and lets the
rest pass untouched.  For those that I identified, it either throws them out
or changes them into something else.  I did this because my company is a
publishing corporation which has to work with multi languages, funky unicode
publishing characters, all with xml.  I have to get rid of characters that
break the xml parser, and changes some characters into others


----- Original Message -----
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 11, 2001 12:50 PM
Subject: RE: filtering unwanted characters


> I have to check each and every character send as input by the user...Will
> SAX help me in this regard ?
>
> cheers,
> Amar..
>
> -----Original Message-----
> From: Jonathan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 12:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: filtering unwanted characters
>
>
> try a sax parser
>
> ----- Original Message -----
> From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 11, 2001 8:35 AM
> Subject: filtering unwanted characters
>
>
> >
> > Hi all,
> >
> >      I might be posting this message in the wrong forum. My apologies if
i
> > have offended anyone.
> >
> >     I am looking for some open source code that deals with filtering
> > technology. Basically i want to filter any unwanted characters from the
> user
> > input data. The user might try to pass in some SQL quesries or try to
run
> > some shell scripts or put special characters which might be rejected by
a
> > database (or even corrupt it). If no such open source code is available
> then
> > i want to write something like that. I was wondering if anyone has done
> some
> > thing like this in the past and if so, can they share their experiences
?
> > Also is there any place i can search for some 'searching algorithms'
which
> i
> > plan to use as the backbone of my filters that i plan to implement.
Thank
> > you very much.....
> >
> > p.s We are using struts bigtime to develop a huge internationalized
> project.
> > So far it didn't let us down.
> >
> > cheers,
> > Amar..
> >
>

Reply via email to