[jdom-interest] Apmersand symbol

Kyle F. Downey kdowney at amberarcher.com
Fri Jul 6 09:57:43 PDT 2001

> Hello, everybody.
> I want to use apmersand symbol as text in xml file, for example:
> <loader> & </loader>

Try this: <loader> &amp; </loader>

The & symbol is used as a prefix for "entities" in XML and SGML--a kind of
a text alias. Thus, & itself needs its own alias--otherwise the parser
will continue and try to find the character # or name after the & sign.


More information about the jdom-interest mailing list