[jdom-interest] Turning of entity expansion
panmanphil at yahoo.com
Tue Sep 3 21:33:03 PDT 2002
Alex is right I think. Isn't it also on the the todo list to determine if
there could be a way to be able to do a better job of round tripping character
entities? Possibly not because the cost would be too high but I think most of
us agreed that would be our choice if it were possible to do without to great a
For the original poster of the question, character entities are not expanded by
JDOM at all. They are expanded by the parser before JDOM ever "sees" them. So
to keep your original character entities intact, you would have to address this
(in some way that I can't answer) by tweaking the parser you use.
--- Alex Rosen <arosen at silverstream.com> wrote:
> > You can't have that, and IYKWWGFY (*), you wouldn't want that.
> > * if you knew what was good for you :-)
> That's overstating it a bit, no? He's asking for a particular one of two
> forms that are completely equivalent in XML's eyes, right? But they may not
> be equivalent in some other application's eyes, e.g. an editor that doesn't
> understand UTF-8, let's say. You're definitely right that XML doesn't care
> which form it is, and if you think it does, then that's your
> misunderstanding of XML. But there are certainly reasonable cases where
> something else might care, and you might want to have control over this
> (irrespective of this particular case).
> To control your jdom-interest membership:
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
More information about the jdom-interest