Digester and illegal characters

  • Thread starter Markos Charatzas
  • Start date
M

Markos Charatzas

Hello all,

I'm using digester to parse a dynamically generated xml document.
The problem is that some text content contains some *illegal* characters
that cause digester to complain (e.g. '&').

I'm not sure whether or not there is some sort of setting so as to make
digester ignore such characters, or another workaround.

Since the xml file is generated dynamically and from many different
sources, I need to encode each of these texts prior to feeding them to
digester, and also once the digester is done parsing I also need to go
through every object and decode the text back again which leads to
all sorts of problems.

E.g.
Every time a new text is introduced which is involved in the xml file
generation it needs to be encoded.
An interface needs to be provided for all of the objects generated so as
to decode each of their details back.

Any help much appreciated.

Thanks in advance,
Markos Charatzas
 
M

Markos Charatzas

From a quick look it seems like it works!

You are a life saviour!

Thanks a million.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top