[jdom-interest] SAXBuilder.setExpandEntities
Alex Rosen
arosen at silverstream.com
Thu May 16 07:25:29 PDT 2002
> > When I have an XML document containing:
> >
> > <a>b&)</a>
> >
> > then I want Element.getContent() to return one
> org.jdom.Text element and 2
> > org.jdom.EntityRef objects. Is there a SAX driver that
> allows me to do this?
>
> You are confusing xml entities and character entities.
> Character entities are
> always expanded by the parser and will never become
> entityrefs in the jdom model.
It would be nice if the JavaDoc mentioned this, it's a frequent source of
confusion.
Alex
More information about the jdom-interest
mailing list