[jdom-interest] Special characters in Text or the Tag

Bhanu Pabreja bhanu at infigroup.com
Tue May 22 00:06:29 PDT 2001

I am very new to xml so this question is very very trivial.

String s = "lskjflks/ljf/&"; //  actually read from the database so I cant
predict when it will have characters which have special meaning to the

My xml

new Element("title").setText(s);

Now how can handle this situation so that my text appears normally i.e.
without & kind of diaplay while outputing &.

Help will be higly appreciated.


More information about the jdom-interest mailing list