[jdom-interest] escaped character handling

Todd O'Bryan toddobryan at mac.com
Wed Aug 22 10:38:34 PDT 2001


I had a similar problem. What you can do is write a Reader class that 
inserts the & where the original file has & and when the XML parser 
finishes with it, you'll get back a file which is identical to the one 
that was passed in. If you wrap that Reader around the FileReader, all 
will work.

If you need more specific instructions, or want the code, email me 
directly and I'll be happy to send it.

Todd

On Wednesday, August 22, 2001, at 05:54 AM, Jussi Koiranen wrote:

> Is it possible to tell to JDOM not to transform
> escaped character to corresponding unicode characters?
>
> I have in XHTML file "–" and parsed JDOM document
> contains '–' character instead of string "–".
> And when I output that to file I'd like to get string "–".
>
> I can fix this by converting all "–" strings to "–"
> in XHTM file, byt then it doesn't look corret at www-browser.
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-
> interest/youraddr at yourhost.com



More information about the jdom-interest mailing list