[jdom-interest] CDATA sections in XMLOutputter

Chang Sau Sheong sschang at sttarfire.com
Thu Jun 22 08:59:26 PDT 2000


Maybe instead of extending String, use String instead? (composition vs
inheritance)

SS
----- Original Message -----
From: "Elliotte Rusty Harold" <elharo at metalab.unc.edu>
To: "Jason Hunter" <jhunter at collab.net>
Cc: <jdom-interest at jdom.org>
Sent: Thursday, June 22, 2000 8:46 PM
Subject: Re: [jdom-interest] CDATA sections in XMLOutputter


> At 4:02 PM -0700 6/21/00, Jason Hunter wrote:
> >I'm not sure if I made this public before, but I've been throwing around
> >the idea of a CdataString class that extended String and was a holder
> >for CDATA sections -- since some people expressed a fervent desire to be
> >able to preserve and construct CDATA sections.  Having CdataString
> >extend String means you can treat it like a normal String, but the
> >outputter can behave intelligently, and you can explicitly construct a
> >CDATA section if desired.
>
> This won't work. java.lang.String is declared final. :-(
>
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> |                  The XML Bible (IDG Books, 1999)                   |
> |              http://metalab.unc.edu/xml/books/bible/               |
> |   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
> |  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
> +----------------------------------+---------------------------------+
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com




More information about the jdom-interest mailing list