[jdom-interest] Automatic Character Escaping

Jason Hunter jhunter at servlets.com
Tue Apr 1 15:31:55 PST 2003


You can add an EntityRef.  But the problem is you'll need the entity to
be understood by the receiver of the document, and so you'll have to
manually tweak the doctype string.

-jh-

Jay Balunas wrote:
> 
> I understand what you are saying, but the   is a special instance
> where the literal character is just a " ".  I need the   to remain so
> that when it is transformed into HTML the   is used.
> 
> Thanks for you response,
> Jay
> 
> 
>                       Elliotte Rusty
>                       Harold                   To:       Jay Balunas/NetScout at NetScout
>                       <elharo at metalab.u        cc:       jdom-interest at jdom.org@SMTP at Exchange
>                       nc.edu>                  Subject:  Re: [jdom-interest] Automatic Character Escaping
> 
>                       04/01/2003 12:49
>                       PM
> 
> 
> 
> >I just need a way for JDOM to not do the automatic escaping for this
> >character sequence.
> 
> No, you don't.* You need to include the actual character in your
> string literals, not &nbsp;
> 
> * There is a small chance you're writing an XML editor. In this case,
> you may actually need to do what you claim, but JDOM isn't going to
> help you. You'll need a different, syntax layer API rather than
> JDOM's structure layer API.
> --
> 
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> |           Processing XML with Java (Addison-Wesley, 2002)          |
> |              http://www.cafeconleche.org/books/xmljava             |
> | http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
> |  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
> +----------------------------------+---------------------------------+
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list