Re: EJB values into xml attributes (a little off topic, I know)

2001-03-02 Thread Falk Langhammer
Hi Randahl, - Original Message - From: "Randahl Fink Isaksen" [EMAIL PROTECTED] XMLEscaper.escape(Book.getPreface()) for all the output you take from your beans and use to generate XML really sounds like a mess to me. While we are at it: If you just *have* to do this conversion, why

RE: EJB values into xml attributes (a little off topic, I know)

2001-03-01 Thread Randahl Fink Isaksen
rion-Interest Subject: Re: EJB values into xml attributes (a little off topic, I know) 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.. ]]

Re: EJB values into xml attributes (a little off topic, I know)

2001-03-01 Thread Falk Langhammer
!DOCTYPE doc [ !ENTITY "amp;" ] I do not think this is legal. (1) Recursive entitity declaration (2) amp; is predefined, is reserved as entity prefix. I do not think that You can redefine the XML grammar by defining "" or "" as entities. In summary, You do not need the DOCTYPE at all. (I

RE: EJB values into xml attributes (a little off topic, I know)

2001-03-01 Thread Randahl Fink Isaksen
Falk wrote: (...) We do have the same problem and solve it by transforming all strings by our class XMLEscaper (...) I would be surprised if there existed some magic avoiding this step. (...) You are probably right. Still, I would very much like to hear from anybody who could prove you wrong.

EJB values into xml attributes (a little off topic, I know)

2001-02-28 Thread Randahl Fink Isaksen
PROBLEM I have a question regarding taking properties from an EJB and generating XML output. To explain, here is an example of my problem: poem title = "%= myPoem.getTitle()" %= myPoem.getContents() % /poem Because title is an XML attribute I think special characters like '' needs to be

Re: EJB values into xml attributes (a little off topic, I know)

2001-02-28 Thread orionEJB
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