Thanks Bender/Curt.

I have fixed this issue by reading byte value for each control character if
any and replacing with space. i.e. All the control chars fall under range (0
- 32) byte.
so that it cant break the xml report. It is working fine :-)

Thanks & Regards,
 --Praveen


On 9/20/06, Bender Heri <[EMAIL PROTECTED]> wrote:

A common way to enter binary data in xml is

- use base64 encoding  (not readable for humans, size is one third bigger
than original)
- translate to hex string (readable for humans, size is twice as big than
original)

Heri

> -----Original Message-----
> From: Praveen Kumar Hasthalapuram [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 19, 2006 8:03 PM
> To: Log4J Users List
> Subject: [SPAM (Bayesain Analysis)] - Re: How to filter specific
> characters to not to log - Bayesian Filter detected spam
>
>
> Hi Curt,
>
> We are facing problems with this chatacter  "&#0;" issue,
>
> Is there any standard convention for representing a character
> of value 0 in
> XML
> (and other control characters)?  I understand that we can't
> actually *have*
> such a character - that's why &#0; is illegal - but sometimes
> we want to
> output
> data that includes such characters.
>
> or How to escape these characters in xml report.
>
> Regards,
> Praveen
>
>
> On 9/19/06, Curt Arnold <[EMAIL PROTECTED]> wrote:
> >
> > XMLLayout in both 1.2 and 1.3 can produce "bad" XML in several
> > scenarios as reported in bugs 29244, 34875 and 37560.
> Since I was an
> > XML guru in a former life, I know of additional holes in the
> > implementation.  If you'd be interested in testing it, I
> could take a
> > shot at re-implementing XMLLayout.  I think that would be a better
> > solution than trying to filter content to avoid the bugs.
> >
> > On Sep 18, 2006, at 1:09 PM, Praveen Kumar Hasthalapuram wrote:
> >
> > > Hi,
> > >
> > > We will get these characters from the devices and these data we
> > > will log.
> > > These logged data will be used to generate xml reports. With some
> > > devices
> > > we are getting some control characters (some spl symbols)
> and these
> > > are
> > > causing xml report to fail. Is it possible to strip this
> characters or
> > > filter this types of characters.
> > >
> > > Regards,
> > > Praveen
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to