[jdom-interest] Ampersand question

Alex Chaffee guru at edamame.stinky.com
Thu Jul 13 00:40:13 PDT 2000

> >         Shouldn't the getSerializedForm output & instead
> > of &?  The outputter class does special processing to output
> > <, >, & as their escaped equivalents.  Am I missing something
> > here?
> Yes, but there are 3 versions of that method right now (beta4, CVS,
> Elliotte's web page) so which one has the problem?  :-)

Any thoughts on my suggestion to remove getSerializedForm()
altogether?  This would force people to use an XMLOutputter, with
well-defined behavior, or roll their own.  Furthermore it would
improve the separation between data and view.  "Serialized form" is a
view and has no real business being in the data object.

 - A

Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

More information about the jdom-interest mailing list