[jdom-interest] predefined entities

Neville Peter p_nevilleuk at yahoo.co.uk
Fri Dec 13 05:34:48 PST 2002


Hello,

I have seen a few threads on this subject, but no
answers to my problem:

I am using SAXBuilder to construct my Document. The
XML file has entity references in some attributes. For
example, <a val1="X&#38;Y"/>.  When I use retrieve
this element and get the attribute value I get "X&Y"
as the value.
What I would like is "X&#38;Y" ie. as it is in the XML
file. This is because I want to store this value in my
database without having to call any conversion
methods.

I have tried using crimson, xerces 2.1.1 etc and
setting setExpandEntities to false and also creating
my own EntityResolver. But cannot get the
functionality I require above.

Any ideas?

Thanks,
Peter Neville


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



More information about the jdom-interest mailing list