You can use title as element not as attribut in your XML document.
Then you can to use CDATA. Everything inside a CDATA section is ignored
by the parser.
<poem>
<title>
<![CDATA[
everything you want..
]]>
</title>
</poem>
--------
BaV
RFI> PROBLEM
RFI> I have a question regarding taking properties from an EJB and generating XML
RFI> output. To explain, here is an example of my problem:
RFI> <poem title = "<%= myPoem.getTitle()"> <%= myPoem.getContents() %>
RFI> </poem>
RFI> Because title is an XML attribute I think special characters like '&' needs
RFI> to be escaped with & and the like. How does one handle this in a nice
RFI> way?
-------------------R--E--K--L--A--M--A---------------------
Szukasz wiedzy? 85 tysiecy uaktualnianych ciagle hasel.
Encyklopedia Internautica: http://encyklopedia.interia.pl/